Skip to content

Commit

Permalink
adds integration test that ensures that the tests run.
Browse files Browse the repository at this point in the history
  • Loading branch information
jejacks0n committed Jan 27, 2013
1 parent 9b09475 commit be00491
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Expand Up @@ -6,10 +6,11 @@ gemspec
gem 'rails', '3.1.0'
gem 'json'
gem 'coffee-rails', "~> 3.1.0"
gem 'haml-rails'

# used by test rails apps
gem 'sqlite3'
gem 'sass-rails', " ~> 3.1.0"
gem 'sass-rails', "~> 3.1.0"
gem 'uglifier'
gem 'jquery-rails'
gem 'turn', :require => false, :group => :test
Expand Down
7 changes: 7 additions & 0 deletions Gemfile.lock
Expand Up @@ -76,6 +76,12 @@ GEM
json (>= 1.4.6)
gherkin (2.11.5-java)
json (>= 1.4.6)
haml (3.1.7)
haml-rails (0.3.5)
actionpack (>= 3.1, < 4.1)
activesupport (>= 3.1, < 4.1)
haml (~> 3.1)
railties (>= 3.1, < 4.1)
hike (1.2.1)
i18n (0.6.0)
jquery-rails (2.2.0)
Expand Down Expand Up @@ -170,6 +176,7 @@ DEPENDENCIES
aruba
capybara
coffee-rails (~> 3.1.0)
haml-rails
jasminerice!
jquery-rails
json
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/config/initializers/jasminerice.rb
Expand Up @@ -10,5 +10,5 @@
#config.mount_at = '/jasmine'

# Specify a path where your fixutures can be found. Defaults to 'spec/javascripts/fixtures'
#config.fixture_path = 'spec/javascripts/fixtures'
config.fixture_path = 'spec/dummy/spec/javascripts/fixtures'
end
11 changes: 11 additions & 0 deletions spec/features/html_reporter_spec.rb
@@ -0,0 +1,11 @@
require "spec_helper"

feature "Testing in the browser", js: true do

scenario "gives me the expected results" do
visit "/jasmine"

expect(page.all(".symbolSummary .passed").length).to be(2)
expect(find('.passingAlert.bar')).to have_text("Passing 2 specs")
end
end
2 changes: 1 addition & 1 deletion spec/jasminerice/jasminerice_spec.rb
Expand Up @@ -5,7 +5,7 @@
it "has configuration properties" do
expect(Jasminerice.mount).to be(true)
expect(Jasminerice.mount_at).to eql('/jasmine')
expect(Jasminerice.fixture_path).to eql('spec/javascripts/fixtures')
expect(Jasminerice.fixture_path).to eql('spec/dummy/spec/javascripts/fixtures')
end

describe ".setup" do
Expand Down

0 comments on commit be00491

Please sign in to comment.