ui_changed 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/workers/ui_changed/worker_base.rb +2 -1
- data/lib/ui_changed/version.rb +1 -1
- data/spec/dummy/config/ui_changed.yml +1 -0
- data/spec/dummy/log/development.log +143 -0
- data/spec/dummy/log/test.log +6750 -0
- data/spec/routing/screenshots_spec.rb +8 -44
- data/spec/views/screenshot_spec.rb +39 -0
- metadata +3 -1
@@ -2,60 +2,24 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
require 'debugger'
|
4
4
|
|
5
|
-
describe
|
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
|
-
|
17
|
-
it "loads diffs with content" do
|
18
|
-
visit "/ui_changed/screenshots/diffs"
|
19
|
-
assert find('h1').has_content?('Diff Screenshots')
|
20
|
-
end
|
21
|
-
|
22
|
-
it "loads controls with content" do
|
23
|
-
visit "/ui_changed/screenshots/controls"
|
24
|
-
assert find('h1').has_content?("Control Screenshots")
|
25
|
-
end
|
26
|
-
|
27
|
-
it "loads tests with content" do
|
28
|
-
visit "/ui_changed/screenshots/tests"
|
29
|
-
assert find('h1').has_content?("Test Screenshots")
|
30
|
-
end
|
31
|
-
|
32
|
-
it "loads compares with content" do
|
33
|
-
visit "/ui_changed/screenshots/compares"
|
34
|
-
assert find('h1').has_content?("Compare Screenshots")
|
35
|
-
end
|
36
|
-
|
37
|
-
it "loads ignores with content" do
|
38
|
-
visit "/ui_changed/screenshot_ignore_urls"
|
39
|
-
assert find('h1').has_content?("Ignored Urls")
|
40
|
-
end
|
5
|
+
describe UiChanged::ScreenshotsController do
|
41
6
|
|
42
7
|
# before(:each) { @routes = UiChanged::Engine.routes }
|
43
8
|
# none of these tests work b/c of "No route matches" erros - annoying
|
44
|
-
|
45
9
|
=begin
|
46
|
-
|
47
|
-
it "routes index to screenshots#index" do
|
48
|
-
get :index
|
49
|
-
page.driver.status_code.should eql 200
|
50
|
-
end
|
51
|
-
|
52
10
|
it "routes /index to screenshots#index" do
|
53
11
|
expect(:get => "/screenshots").to route_to(
|
54
|
-
:controller => "
|
12
|
+
:controller => "screenshots",
|
55
13
|
:action => "index"
|
56
14
|
)
|
57
15
|
end
|
58
16
|
|
17
|
+
it "routes index to screenshots#index" do
|
18
|
+
get :index
|
19
|
+
render
|
20
|
+
page.driver.status_code.should eql 200
|
21
|
+
end
|
22
|
+
|
59
23
|
it "routes /screenshots/diffs to screenshots#diffs" do
|
60
24
|
expect(:get => "/screenshots/diffs").to route_to(
|
61
25
|
:controller => "ui_changed/screenshot",
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "views for screenshots" do
|
4
|
+
|
5
|
+
it "loads home page with content" do
|
6
|
+
visit "/ui_changed/screenshots"
|
7
|
+
assert page.has_content?('Start All')
|
8
|
+
end
|
9
|
+
|
10
|
+
it "loads crawl_status with content" do
|
11
|
+
visit "/ui_changed/screenshots/crawl_status"
|
12
|
+
assert find('body').has_content?('[{"screenshots":')
|
13
|
+
end
|
14
|
+
|
15
|
+
it "loads diffs with content" do
|
16
|
+
visit "/ui_changed/screenshots/diffs"
|
17
|
+
assert find('h1').has_content?('Diff Screenshots')
|
18
|
+
end
|
19
|
+
|
20
|
+
it "loads controls with content" do
|
21
|
+
visit "/ui_changed/screenshots/controls"
|
22
|
+
assert find('h1').has_content?("Control Screenshots")
|
23
|
+
end
|
24
|
+
|
25
|
+
it "loads tests with content" do
|
26
|
+
visit "/ui_changed/screenshots/tests"
|
27
|
+
assert find('h1').has_content?("Test Screenshots")
|
28
|
+
end
|
29
|
+
|
30
|
+
it "loads compares with content" do
|
31
|
+
visit "/ui_changed/screenshots/compares"
|
32
|
+
assert find('h1').has_content?("Compare Screenshots")
|
33
|
+
end
|
34
|
+
|
35
|
+
it "loads ignores with content" do
|
36
|
+
visit "/ui_changed/screenshot_ignore_urls"
|
37
|
+
assert find('h1').has_content?("Ignored Urls")
|
38
|
+
end
|
39
|
+
end
|
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.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -528,6 +528,7 @@ files:
|
|
528
528
|
- spec/test_screenshots/test/image_8_small.png
|
529
529
|
- spec/test_screenshots/test/image_9.png
|
530
530
|
- spec/test_screenshots/test/image_9_small.png
|
531
|
+
- spec/views/screenshot_spec.rb
|
531
532
|
homepage: https://github.com/adelegard/ui_changed
|
532
533
|
licenses: []
|
533
534
|
post_install_message:
|
@@ -705,3 +706,4 @@ test_files:
|
|
705
706
|
- spec/test_screenshots/test/image_8_small.png
|
706
707
|
- spec/test_screenshots/test/image_9.png
|
707
708
|
- spec/test_screenshots/test/image_9_small.png
|
709
|
+
- spec/views/screenshot_spec.rb
|