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.
- data/app/assets/javascripts/ui_changed/ui_changed.js +4 -6
- data/app/controllers/ui_changed/screenshots_controller.rb +3 -3
- data/app/views/layouts/ui_changed/application.html.haml +2 -1
- data/app/views/ui_changed/screenshots/index.haml +1 -0
- data/config/routes.rb +2 -2
- data/lib/ui_changed/version.rb +1 -1
- data/spec/dummy/log/development.log +132 -0
- data/spec/dummy/log/test.log +4883 -0
- data/spec/routing/screenshots_spec.rb +16 -0
- metadata +1 -1
@@ -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",
|