These are chat archives for opal/opal

13th
Jun 2015
Vais Salikhov
@vais
Jun 13 2015 00:01
@cj thanks, I'll take a look
Keith Salisbury
@globalkeith
Jun 13 2015 11:21
Thanks Forrest, unfortunately other company presentations blocked my workshop but I'm going to do it next week!
Mitch VanDuyn
@catmando
Jun 13 2015 12:31

Any hints / tips on structuring specs for a gem that runs in opal on the client, but also has a server side controller as well? I.e. I need to run tests for the opal libraries in phantomjs (okay can do that) and also have specs that will test the functionality of the server side controller.

From looking at the opal-rails code, it looks like I have this in the rake task:

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new :rspec


require File.expand_path('../test_app/config/application', __FILE__)
TestApp::Application.load_tasks

task :default => [:rspec, 'opal:spec']

and then the normal server side tests go in the normal spec directory...
but I don't quite see where the opal side tests would go? Is there a directory somewhere i missed?