Sha256: 204650f17a8306c77bc1379ef0d3da17de6980cdc09297706e07a0efbe7d3dd8
Contents?: true
Size: 1.51 KB
Versions: 1
Compression:
Stored size: 1.51 KB
Contents
Feature: Running cucumber in the generated project Background: Given I have a clean environment Scenario: The generated project works correctly Given I drop and create the required databases And I generate "scaffold user username:string" And I run the rake task "db:migrate" And I create a file named "features/test.feature" with: """ Feature: The application works correctly @javascript Scenario: jQuery and Modernizr work correctly When I visit the users page Then the javascript expression "$('html').hasClass('js')" should return "true" And the javascript expression "$('html').hasClass('no-js')" should return "false" Scenario: Stylesheets are generated correctly Given there are no cached assets When I visit the application stylesheet Then it should contain bootstrap """ And I create a file named "features/step_definitions/test_steps.rb" with: """ When /^I visit the users page/ do visit "/users" end Given /^there are no cached assets$/ do FileUtils.rm_rf ["#{Rails.root}/tmp/cache/assets", "#{Rails.root}/tmp/cache/sass"] end When /^I visit the application stylesheet$/ do visit "/assets/application.css" end Then /^it should contain bootstrap$/ do page.should have_content "/bootstrap-sass-2." end """ When I run the rake task "cucumber" Then I see a successful response in the shell
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
da-suspenders-1.3.1 | features/running_cucumber.feature |