subelsky_power_tools 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
# assertions for use with Capybara
|
2
|
+
module PageLoadAssertons
|
3
|
+
def visit!(path,*args)
|
4
|
+
visit path,*args
|
5
|
+
should_load(path)
|
6
|
+
end
|
7
|
+
|
8
|
+
def should_load(path)
|
9
|
+
page.current_path.should == path
|
10
|
+
page.status_code.should == 200
|
11
|
+
end
|
12
|
+
|
13
|
+
def should_404(path)
|
14
|
+
page.current_path.should == path
|
15
|
+
page.status_code.should == 404
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subelsky_power_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-12-29 00:00:00.000000000 -05:00
|
13
|
+
default_executable:
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: rspec
|
16
|
-
requirement: &
|
17
|
+
requirement: &2157374260 !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
20
|
- - ! '>='
|
@@ -21,7 +22,7 @@ dependencies:
|
|
21
22
|
version: '0'
|
22
23
|
type: :development
|
23
24
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
+
version_requirements: *2157374260
|
25
26
|
description: ! "This is a collection of Ruby extensions and utilities I've been carting
|
26
27
|
around from project to project. \nMany are taken from the Facets project (I just
|
27
28
|
don't want to include that whole gem in my codebases).\n"
|
@@ -46,6 +47,7 @@ files:
|
|
46
47
|
- lib/subelsky_power_tools/ext/exception.rb
|
47
48
|
- lib/subelsky_power_tools/ext/hash.rb
|
48
49
|
- lib/subelsky_power_tools/ext/kernel.rb
|
50
|
+
- lib/subelsky_power_tools/page_load_assertions.rb
|
49
51
|
- lib/subelsky_power_tools/version.rb
|
50
52
|
- spec/lib/environment_spec.rb
|
51
53
|
- spec/lib/ext/exception_spec.rb
|
@@ -53,6 +55,7 @@ files:
|
|
53
55
|
- spec/lib/ext/kernel_spec.rb
|
54
56
|
- spec/spec_helper.rb
|
55
57
|
- subelsky_power_tools.gemspec
|
58
|
+
has_rdoc: true
|
56
59
|
homepage: http://github.com/subelsky/subelsky_power_tools
|
57
60
|
licenses:
|
58
61
|
- MIT
|
@@ -75,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
78
|
version: '0'
|
76
79
|
requirements: []
|
77
80
|
rubyforge_project:
|
78
|
-
rubygems_version: 1.
|
81
|
+
rubygems_version: 1.6.2
|
79
82
|
signing_key:
|
80
83
|
specification_version: 3
|
81
84
|
summary: This is a collection of Ruby extensions and utilities I've been carting around
|