spec/cli/cukes_spec.rb in skellington-0.4.1 vs spec/cli/cukes_spec.rb in skellington-0.4.2
- old
+ new
@@ -4,21 +4,21 @@
described_class.new
end
it 'generates some cucumber file' do
subject.generate 'dummy_app'
- expect('dummy_app/features/dummy_app.feature').to contain (
+ expect('dummy_app/features/dummy_app.feature').to have_content (
"""
Feature: Make sure DummyApp is plumbed in correctly
Scenario: Get root
When I send a GET request to \"/\"
Then the response status should be \"200\"
"""
)
- expect('dummy_app/features/json.feature').to contain (
+ expect('dummy_app/features/json.feature').to have_content (
"""
Feature: Get JSON
Background:
Given I send and accept JSON
@@ -28,10 +28,10 @@
Then the response status should be \"200\"
And the JSON response should have \"$app\" with the text \"DummyApp\"
"""
)
- expect('dummy_app/features/support/env.rb').to contain (
+ expect('dummy_app/features/support/env.rb').to have_content (
"""
ENV['RACK_ENV'] = 'test'
require File.join(File.dirname(__FILE__), '..', '..', 'lib/dummy_app.rb')