ui_changed 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,16 @@ require 'debugger'
4
4
 
5
5
  describe "routing to screenshots" do
6
6
 
7
+ it "loads home page with content" do
8
+ visit "/ui_changed/screenshots"
9
+ assert page.has_content?('Start All')
10
+ end
11
+
12
+ it "loads crawl_status with content" do
13
+ visit "/ui_changed/screenshots/crawl_status"
14
+ assert find('body').has_content?('[{"screenshots":')
15
+ end
16
+
7
17
  it "loads diffs with content" do
8
18
  visit "/ui_changed/screenshots/diffs"
9
19
  assert find('h1').has_content?('Diff Screenshots')
@@ -33,6 +43,12 @@ describe "routing to screenshots" do
33
43
  # none of these tests work b/c of "No route matches" erros - annoying
34
44
 
35
45
  =begin
46
+
47
+ it "routes index to screenshots#index" do
48
+ get :index
49
+ page.driver.status_code.should eql 200
50
+ end
51
+
36
52
  it "routes /index to screenshots#index" do
37
53
  expect(:get => "/screenshots").to route_to(
38
54
  :controller => "ui_changed/screenshots",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ui_changed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: