-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH #22: changed the acceptance tests to work in production environment
on an EC2 instance
- Loading branch information
Larry Karnowski and Lake Denman
committed
Apr 10, 2012
1 parent
fb21681
commit b24bd94
Showing
3 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
require 'spec_helper' | ||
|
||
describe 'App is alive', :js => true, :acceptance => true do | ||
it 'verifies coffeescript served up as js' do | ||
visit '/assets/relevance_rails.js' | ||
page.should have_content "console.log('Hello from Relevance, Inc!');" | ||
end | ||
|
||
it "verifies haml is served up" do | ||
visit '/relevance_rails' | ||
page.should have_content 'WELCOME HOME' | ||
end | ||
|
||
it 'verifies coffeescript served up as js' do | ||
visit '/assets/application.js' | ||
page.should have_content 'console.log("Hello from Relevance, Inc!")' | ||
end | ||
|
||
it "verifies scss is served up as css" do | ||
visit '/assets/relevance_rails.css' | ||
page.should have_content "background-color: blue;" | ||
visit '/assets/application.css' | ||
page.should have_content "background-color:blue" | ||
end | ||
|
||
it "verifies a working database connection" do | ||
visit '/relevance_rails/db' | ||
within ('h1.database') do | ||
page.should have_content '_development' | ||
within ('h1.advanced_math') do | ||
page.should have_content '4242' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b24bd94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes to the fixtures_generator in this commit have caused failures when Muness took a test drive in MySQL. Instead of returning a result set, it returned a single result with no column names.