Permalink
Browse files

fixed the tests that fail on travis ci

  • Loading branch information...
1 parent 202b775 commit 5eab86d86554080782316efe442d122255724a54 @deadlyicon committed Mar 25, 2012
Showing with 20 additions and 17 deletions.
  1. +0 −2 .travis.yml
  2. +2 −2 spec/hobson/project/test_run/tests_spec.rb
  3. +18 −13 spec/hobson/project/test_run_spec.rb
View
@@ -1,5 +1,3 @@
language: ruby
rvm:
- - 1.8.7
- - 1.9.2
- 1.9.3
@@ -25,8 +25,8 @@
tests.detect!
}
- it "should have a length of 8" do
- tests.length.should == 11
+ it "should have a length of 16" do
+ tests.length.should == 16
end
it "should contain only Test objects" do
@@ -105,20 +105,25 @@
# using a set of sets allows comparison to not case about the other
# of tests or what job got what set of tests
expected_job_tests = Set[
- %w[
- scenario:A
- scenario:B
- scenario:C
- scenario:D
- scenario:E
+ [
+ "scenario:A",
+ "scenario:B",
+ "scenario:C",
+ "scenario:D",
+ "scenario:E",
+ "scenario:As an admin I should be able to create a post",
+ "scenario:As an admin I should be able to create a post and delete it",
+ "scenario:As an admin I should be able to delete a post",
+ "scenario:As an admin I should be able to view a post",
+ "scenario:As a visitor I should be able to view a post",
].to_set,
- %w[
- spec:spec/a_spec.rb
- spec:spec/b_spec.rb
- spec:spec/c_spec.rb
- spec:spec/d_spec.rb
- spec:spec/e_spec.rb
- spec:spec/flakey_spec.rb
+ [
+ "spec:spec/a_spec.rb",
+ "spec:spec/b_spec.rb",
+ "spec:spec/c_spec.rb",
+ "spec:spec/d_spec.rb",
+ "spec:spec/e_spec.rb",
+ "spec:spec/flakey_spec.rb",
].to_set
]

0 comments on commit 5eab86d

Please sign in to comment.