Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating the tests since I changed the behavior; we're now saving dif…

…fs of the screenshots in the first browser's screenshot dir as well
  • Loading branch information...
commit a35fa78c2b8baf79b53d68e23753f983afab8d0f 1 parent 69e16f0
@carols10cents authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 spec/basic_behavior_spec.rb
  2. +2 −2 spec/list_of_app_paths_spec.rb
View
4 spec/basic_behavior_spec.rb
@@ -41,8 +41,8 @@
assert File.exists?(@chrome_directory)
end
- it "visits the home page and takes 1 screenshot per browser" do
- Dir.glob(File.join(@firefox_directory, "*.png")).size.must_equal 1
+ it "visits the home page and takes 1 screenshot per browser and diffs them" do
+ Dir.glob(File.join(@firefox_directory, "*.png")).size.must_equal 2
Dir.glob(File.join(@chrome_directory, "*.png")).size.must_equal 1
end
View
4 spec/list_of_app_paths_spec.rb
@@ -23,8 +23,8 @@
Dir.chdir(@current_dir)
end
- it "takes a screenshot for each path given" do
- Dir.glob(File.join(@firefox_directory, "*.png")).size.must_equal 2
+ it "takes a screenshot for each path given and diffs them" do
+ Dir.glob(File.join(@firefox_directory, "*.png")).size.must_equal 6
Dir.glob(File.join(@chrome_directory, "*.png")).size.must_equal 2
end
Please sign in to comment.
Something went wrong with that request. Please try again.