Skip to content

Commit

Permalink
Added browser test to require.js feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaxt committed Nov 22, 2011
1 parent 9ab2425 commit e0e3c19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion features/amd_support.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ Feature: Support amd modules in javaScript
Given I am currently in the "jasmine-webapp-amd-support" project
When I run "mvn clean test"
Then the build should succeed
And I should see "Results: 2 specs, 0 failures"
And I should see "Results: 2 specs, 0 failures"

@server
Scenario: project with javascript using require.js running in browser

Given I am currently in the "jasmine-webapp-amd-support" project
When I run "mvn clean jasmine:bdd" in a new process
And I load "http://localhost:8234" in a browser
Then I should see "2 specs, 0 failures"
1 change: 1 addition & 0 deletions features/support/hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
@browser.close
@process.stop
@process.poll_for_exit(5)
puts "Process killed"
end

0 comments on commit e0e3c19

Please sign in to comment.