flowerbox/features/basic_run.feature
2012-02-22 11:47:07 -05:00

31 lines
846 B
Gherkin

Feature: Basic Run
Scenario: Use the Node runner using Jasmine
Given I have the file "spec/javascripts/spec_helper.rb" with the content:
"""
Flowerbox.configure do |c|
c.test_with :jasmine
c.spec_patterns << "**/*_spec.*"
c.asset_paths << "lib"
c.bare_coffeescript = true
end
"""
Given I have the file "spec/javascripts/cat_spec.js.coffee" with the content:
"""
#= require cat
describe 'Cat', ->
describe '#meow', ->
it 'should meow', ->
cat = new Cat()
expect(cat.meow()).toEqual('meow')
"""
Given I have the file "lib/cat.js.coffee" with the content:
"""
class Cat
meow: -> "meow"
"""
When I run Flowerbox with "spec/javascripts"
Then I should have 1 test and 0 failures