orderly 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cb208895e2540f7de44eceadbd6cbf73b712cb66
4
+ data.tar.gz: f89ddea90e2582050f2576006fb40ac3c5096541
5
+ SHA512:
6
+ metadata.gz: 104a2be0033d752ccb3a9fa17ad9aafb33940c672903531458ebd62cf1d83f645c41fdd0168abb49d895d2880945328e895b05e5da7b031226622e6c25dcca73
7
+ data.tar.gz: 11d9d2085d4d2bc27ad162a286c1903e23a5644ad1b9bf9ef351cfbf10f6d371587d23ec7a6205a0b7c36170e2f9fc3f571919c9eb7b8e8ed90ce17bdb6a2d91
@@ -0,0 +1,17 @@
1
+ rvm:
2
+ - 1.9.3
3
+ - 2.0.0
4
+ - 2.1.7
5
+ - 2.2.4
6
+ script: 'bundle exec rake'
7
+ gemfile:
8
+ - gemfiles/capybara_1.1.gemfile
9
+ - gemfiles/capybara_2.0.gemfile
10
+ - gemfiles/capybara_2.1.gemfile
11
+ - gemfiles/capybara_2.2.gemfile
12
+ - gemfiles/capybara_2.3.gemfile
13
+ - gemfiles/capybara_2.4_rspec_2.gemfile
14
+ - gemfiles/capybara_2.4_rspec_3.gemfile
15
+
16
+ cache: bundler
17
+ sudo: false
@@ -0,0 +1,29 @@
1
+ appraise 'capybara-1.1' do
2
+ gem 'capybara', '~> 1.1'
3
+ end
4
+
5
+ appraise 'capybara-2.0' do
6
+ gem 'capybara', '~> 2.0.0'
7
+ end
8
+
9
+ appraise 'capybara-2.1' do
10
+ gem 'capybara', '~> 2.1.0'
11
+ end
12
+
13
+ appraise 'capybara-2.2' do
14
+ gem 'capybara', '~> 2.2.0'
15
+ end
16
+
17
+ appraise 'capybara-2.3' do
18
+ gem 'capybara', '~> 2.3.0'
19
+ end
20
+
21
+ appraise 'capybara-2.4-rspec-2' do
22
+ gem 'rspec', '~> 2.99.0'
23
+ gem 'capybara', '~> 2.4.0'
24
+ end
25
+
26
+ appraise 'capybara-2.4-rspec-3' do
27
+ gem 'rspec', '~> 3.0.0'
28
+ gem 'capybara', '~> 2.4.0'
29
+ end
data/README.md CHANGED
@@ -4,9 +4,8 @@ Rspec matcher for asserting that this appears_before(that) in rspec request spec
4
4
 
5
5
  ## Installation
6
6
 
7
- Add these lines to your application's Gemfile (in this order):
7
+ Add this line to your application's Gemfile:
8
8
 
9
- gem 'rspec-rails'
10
9
  gem 'orderly'
11
10
 
12
11
  And then execute:
@@ -22,15 +21,16 @@ Or install it yourself as:
22
21
  In an rspec request spec, do
23
22
 
24
23
  this.should appear_before(that)
24
+ # or
25
+ expect(this).to appear_before(that)
25
26
 
26
27
  or, to assert that something does not appear before
27
28
 
28
29
  this.should_not appear_before(that)
29
-
30
+ # or
31
+ expect(this).to_not appear_before(that)
32
+
30
33
  Error handling in place for cases where this or that does not appear on the page.
31
34
 
32
- ## Todo
33
- - Add TravisCI
34
-
35
35
  ## Contributing
36
36
  Patches welcome! Submit a pull request.
data/Rakefile CHANGED
@@ -1,2 +1,9 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+ require 'rspec/core/rake_task'
4
+ require 'appraisal'
5
+
6
+ desc "Run specs"
7
+ RSpec::Core::RakeTask.new
8
+
9
+ task default: :spec
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "capybara", "~> 1.1"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,76 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ orderly (0.0.2)
5
+ capybara (>= 1.1)
6
+ rspec (>= 2.14)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ appraisal (1.0.0)
12
+ bundler
13
+ rake
14
+ thor (>= 0.14.0)
15
+ capybara (1.1.2)
16
+ mime-types (>= 1.16)
17
+ nokogiri (>= 1.3.3)
18
+ rack (>= 1.0.0)
19
+ rack-test (>= 0.5.4)
20
+ selenium-webdriver (~> 2.0)
21
+ xpath (~> 0.1.4)
22
+ childprocess (0.5.1)
23
+ ffi (~> 1.0, >= 1.0.11)
24
+ diff-lcs (1.2.5)
25
+ ffi (1.9.3)
26
+ metaclass (0.0.4)
27
+ mime-types (2.3)
28
+ mini_portile (0.6.0)
29
+ mocha (1.1.0)
30
+ metaclass (~> 0.0.1)
31
+ multi_json (1.10.1)
32
+ nokogiri (1.6.2.1)
33
+ mini_portile (= 0.6.0)
34
+ rack (1.5.2)
35
+ rack-protection (1.5.3)
36
+ rack
37
+ rack-test (0.6.2)
38
+ rack (>= 1.0)
39
+ rake (10.3.2)
40
+ rspec (3.0.0)
41
+ rspec-core (~> 3.0.0)
42
+ rspec-expectations (~> 3.0.0)
43
+ rspec-mocks (~> 3.0.0)
44
+ rspec-core (3.0.4)
45
+ rspec-support (~> 3.0.0)
46
+ rspec-expectations (3.0.4)
47
+ diff-lcs (>= 1.2.0, < 2.0)
48
+ rspec-support (~> 3.0.0)
49
+ rspec-mocks (3.0.4)
50
+ rspec-support (~> 3.0.0)
51
+ rspec-support (3.0.4)
52
+ rubyzip (1.1.1)
53
+ selenium-webdriver (2.40.0)
54
+ childprocess (>= 0.5.0)
55
+ multi_json (~> 1.0)
56
+ rubyzip (~> 1.0)
57
+ websocket (~> 1.0.4)
58
+ sinatra (1.4.5)
59
+ rack (~> 1.4)
60
+ rack-protection (~> 1.4)
61
+ tilt (~> 1.3, >= 1.3.4)
62
+ thor (0.19.1)
63
+ tilt (1.4.1)
64
+ websocket (1.0.7)
65
+ xpath (0.1.4)
66
+ nokogiri (~> 1.3)
67
+
68
+ PLATFORMS
69
+ ruby
70
+
71
+ DEPENDENCIES
72
+ appraisal (~> 1.0)
73
+ capybara (~> 1.1)
74
+ mocha (~> 1.1)
75
+ orderly!
76
+ sinatra (~> 1.4)
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "capybara", "~> 2.0.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,76 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ orderly (0.0.2)
5
+ capybara (>= 1.1)
6
+ rspec (>= 2.14)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ appraisal (1.0.0)
12
+ bundler
13
+ rake
14
+ thor (>= 0.14.0)
15
+ capybara (2.0.3)
16
+ mime-types (>= 1.16)
17
+ nokogiri (>= 1.3.3)
18
+ rack (>= 1.0.0)
19
+ rack-test (>= 0.5.4)
20
+ selenium-webdriver (~> 2.0)
21
+ xpath (~> 1.0.0)
22
+ childprocess (0.5.3)
23
+ ffi (~> 1.0, >= 1.0.11)
24
+ diff-lcs (1.2.5)
25
+ ffi (1.9.3)
26
+ metaclass (0.0.4)
27
+ mime-types (2.3)
28
+ mini_portile (0.6.0)
29
+ mocha (1.1.0)
30
+ metaclass (~> 0.0.1)
31
+ multi_json (1.10.1)
32
+ nokogiri (1.6.2.1)
33
+ mini_portile (= 0.6.0)
34
+ rack (1.5.2)
35
+ rack-protection (1.5.3)
36
+ rack
37
+ rack-test (0.6.2)
38
+ rack (>= 1.0)
39
+ rake (10.3.2)
40
+ rspec (3.0.0)
41
+ rspec-core (~> 3.0.0)
42
+ rspec-expectations (~> 3.0.0)
43
+ rspec-mocks (~> 3.0.0)
44
+ rspec-core (3.0.4)
45
+ rspec-support (~> 3.0.0)
46
+ rspec-expectations (3.0.4)
47
+ diff-lcs (>= 1.2.0, < 2.0)
48
+ rspec-support (~> 3.0.0)
49
+ rspec-mocks (3.0.4)
50
+ rspec-support (~> 3.0.0)
51
+ rspec-support (3.0.4)
52
+ rubyzip (1.1.4)
53
+ selenium-webdriver (2.42.0)
54
+ childprocess (>= 0.5.0)
55
+ multi_json (~> 1.0)
56
+ rubyzip (~> 1.0)
57
+ websocket (~> 1.0.4)
58
+ sinatra (1.4.5)
59
+ rack (~> 1.4)
60
+ rack-protection (~> 1.4)
61
+ tilt (~> 1.3, >= 1.3.4)
62
+ thor (0.19.1)
63
+ tilt (1.4.1)
64
+ websocket (1.0.7)
65
+ xpath (1.0.0)
66
+ nokogiri (~> 1.3)
67
+
68
+ PLATFORMS
69
+ ruby
70
+
71
+ DEPENDENCIES
72
+ appraisal (~> 1.0)
73
+ capybara (~> 2.0.0)
74
+ mocha (~> 1.1)
75
+ orderly!
76
+ sinatra (~> 1.4)
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "capybara", "~> 2.1.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ orderly (0.0.2)
5
+ capybara (>= 1.1)
6
+ rspec (>= 2.14)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ appraisal (1.0.0)
12
+ bundler
13
+ rake
14
+ thor (>= 0.14.0)
15
+ capybara (2.1.0)
16
+ mime-types (>= 1.16)
17
+ nokogiri (>= 1.3.3)
18
+ rack (>= 1.0.0)
19
+ rack-test (>= 0.5.4)
20
+ xpath (~> 2.0)
21
+ diff-lcs (1.2.5)
22
+ metaclass (0.0.4)
23
+ mime-types (2.3)
24
+ mini_portile (0.6.0)
25
+ mocha (1.1.0)
26
+ metaclass (~> 0.0.1)
27
+ nokogiri (1.6.2.1)
28
+ mini_portile (= 0.6.0)
29
+ rack (1.5.2)
30
+ rack-protection (1.5.3)
31
+ rack
32
+ rack-test (0.6.2)
33
+ rack (>= 1.0)
34
+ rake (10.3.2)
35
+ rspec (3.0.0)
36
+ rspec-core (~> 3.0.0)
37
+ rspec-expectations (~> 3.0.0)
38
+ rspec-mocks (~> 3.0.0)
39
+ rspec-core (3.0.4)
40
+ rspec-support (~> 3.0.0)
41
+ rspec-expectations (3.0.4)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.0.0)
44
+ rspec-mocks (3.0.4)
45
+ rspec-support (~> 3.0.0)
46
+ rspec-support (3.0.4)
47
+ sinatra (1.4.5)
48
+ rack (~> 1.4)
49
+ rack-protection (~> 1.4)
50
+ tilt (~> 1.3, >= 1.3.4)
51
+ thor (0.19.1)
52
+ tilt (1.4.1)
53
+ xpath (2.0.0)
54
+ nokogiri (~> 1.3)
55
+
56
+ PLATFORMS
57
+ ruby
58
+
59
+ DEPENDENCIES
60
+ appraisal (~> 1.0)
61
+ capybara (~> 2.1.0)
62
+ mocha (~> 1.1)
63
+ orderly!
64
+ sinatra (~> 1.4)
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "capybara", "~> 2.2.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ orderly (0.0.2)
5
+ capybara (>= 1.1)
6
+ rspec (>= 2.14)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ appraisal (1.0.0)
12
+ bundler
13
+ rake
14
+ thor (>= 0.14.0)
15
+ capybara (2.2.1)
16
+ mime-types (>= 1.16)
17
+ nokogiri (>= 1.3.3)
18
+ rack (>= 1.0.0)
19
+ rack-test (>= 0.5.4)
20
+ xpath (~> 2.0)
21
+ diff-lcs (1.2.5)
22
+ metaclass (0.0.4)
23
+ mime-types (2.3)
24
+ mini_portile (0.6.0)
25
+ mocha (1.1.0)
26
+ metaclass (~> 0.0.1)
27
+ nokogiri (1.6.2.1)
28
+ mini_portile (= 0.6.0)
29
+ rack (1.5.2)
30
+ rack-protection (1.5.3)
31
+ rack
32
+ rack-test (0.6.2)
33
+ rack (>= 1.0)
34
+ rake (10.3.2)
35
+ rspec (3.0.0)
36
+ rspec-core (~> 3.0.0)
37
+ rspec-expectations (~> 3.0.0)
38
+ rspec-mocks (~> 3.0.0)
39
+ rspec-core (3.0.4)
40
+ rspec-support (~> 3.0.0)
41
+ rspec-expectations (3.0.4)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.0.0)
44
+ rspec-mocks (3.0.4)
45
+ rspec-support (~> 3.0.0)
46
+ rspec-support (3.0.4)
47
+ sinatra (1.4.5)
48
+ rack (~> 1.4)
49
+ rack-protection (~> 1.4)
50
+ tilt (~> 1.3, >= 1.3.4)
51
+ thor (0.19.1)
52
+ tilt (1.4.1)
53
+ xpath (2.0.0)
54
+ nokogiri (~> 1.3)
55
+
56
+ PLATFORMS
57
+ ruby
58
+
59
+ DEPENDENCIES
60
+ appraisal (~> 1.0)
61
+ capybara (~> 2.2.0)
62
+ mocha (~> 1.1)
63
+ orderly!
64
+ sinatra (~> 1.4)
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "capybara", "~> 2.3.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ orderly (0.0.2)
5
+ capybara (>= 1.1)
6
+ rspec (>= 2.14)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ appraisal (1.0.0)
12
+ bundler
13
+ rake
14
+ thor (>= 0.14.0)
15
+ capybara (2.3.0)
16
+ mime-types (>= 1.16)
17
+ nokogiri (>= 1.3.3)
18
+ rack (>= 1.0.0)
19
+ rack-test (>= 0.5.4)
20
+ xpath (~> 2.0)
21
+ diff-lcs (1.2.5)
22
+ metaclass (0.0.4)
23
+ mime-types (2.3)
24
+ mini_portile (0.6.0)
25
+ mocha (1.1.0)
26
+ metaclass (~> 0.0.1)
27
+ nokogiri (1.6.2.1)
28
+ mini_portile (= 0.6.0)
29
+ rack (1.5.2)
30
+ rack-protection (1.5.3)
31
+ rack
32
+ rack-test (0.6.2)
33
+ rack (>= 1.0)
34
+ rake (10.3.2)
35
+ rspec (3.0.0)
36
+ rspec-core (~> 3.0.0)
37
+ rspec-expectations (~> 3.0.0)
38
+ rspec-mocks (~> 3.0.0)
39
+ rspec-core (3.0.4)
40
+ rspec-support (~> 3.0.0)
41
+ rspec-expectations (3.0.4)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.0.0)
44
+ rspec-mocks (3.0.4)
45
+ rspec-support (~> 3.0.0)
46
+ rspec-support (3.0.4)
47
+ sinatra (1.4.5)
48
+ rack (~> 1.4)
49
+ rack-protection (~> 1.4)
50
+ tilt (~> 1.3, >= 1.3.4)
51
+ thor (0.19.1)
52
+ tilt (1.4.1)
53
+ xpath (2.0.0)
54
+ nokogiri (~> 1.3)
55
+
56
+ PLATFORMS
57
+ ruby
58
+
59
+ DEPENDENCIES
60
+ appraisal (~> 1.0)
61
+ capybara (~> 2.3.0)
62
+ mocha (~> 1.1)
63
+ orderly!
64
+ sinatra (~> 1.4)
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "capybara", "~> 2.4.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,63 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ orderly (0.0.2)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ appraisal (1.0.2)
10
+ bundler
11
+ rake
12
+ thor (>= 0.14.0)
13
+ capybara (2.4.1)
14
+ mime-types (>= 1.16)
15
+ nokogiri (>= 1.3.3)
16
+ rack (>= 1.0.0)
17
+ rack-test (>= 0.5.4)
18
+ xpath (~> 2.0)
19
+ diff-lcs (1.2.5)
20
+ metaclass (0.0.4)
21
+ mime-types (2.3)
22
+ mini_portile (0.6.0)
23
+ mocha (1.1.0)
24
+ metaclass (~> 0.0.1)
25
+ nokogiri (1.6.3.1)
26
+ mini_portile (= 0.6.0)
27
+ rack (1.5.2)
28
+ rack-protection (1.5.3)
29
+ rack
30
+ rack-test (0.6.2)
31
+ rack (>= 1.0)
32
+ rake (10.3.2)
33
+ rspec (3.0.0)
34
+ rspec-core (~> 3.0.0)
35
+ rspec-expectations (~> 3.0.0)
36
+ rspec-mocks (~> 3.0.0)
37
+ rspec-core (3.0.4)
38
+ rspec-support (~> 3.0.0)
39
+ rspec-expectations (3.0.4)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.0.0)
42
+ rspec-mocks (3.0.4)
43
+ rspec-support (~> 3.0.0)
44
+ rspec-support (3.0.4)
45
+ sinatra (1.4.5)
46
+ rack (~> 1.4)
47
+ rack-protection (~> 1.4)
48
+ tilt (~> 1.3, >= 1.3.4)
49
+ thor (0.19.1)
50
+ tilt (1.4.1)
51
+ xpath (2.0.0)
52
+ nokogiri (~> 1.3)
53
+
54
+ PLATFORMS
55
+ ruby
56
+
57
+ DEPENDENCIES
58
+ appraisal (~> 1.0)
59
+ capybara (~> 2.4.0)
60
+ mocha (~> 1.1)
61
+ orderly!
62
+ rspec (>= 2.14)
63
+ sinatra (~> 1.4)
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rspec", "~> 2.14.0"
6
+ gem "capybara", "~> 2.4.0"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,59 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ orderly (0.0.2)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ appraisal (1.0.2)
10
+ bundler
11
+ rake
12
+ thor (>= 0.14.0)
13
+ capybara (2.4.1)
14
+ mime-types (>= 1.16)
15
+ nokogiri (>= 1.3.3)
16
+ rack (>= 1.0.0)
17
+ rack-test (>= 0.5.4)
18
+ xpath (~> 2.0)
19
+ diff-lcs (1.2.5)
20
+ metaclass (0.0.4)
21
+ mime-types (2.3)
22
+ mini_portile (0.6.0)
23
+ mocha (1.1.0)
24
+ metaclass (~> 0.0.1)
25
+ nokogiri (1.6.3.1)
26
+ mini_portile (= 0.6.0)
27
+ rack (1.5.2)
28
+ rack-protection (1.5.3)
29
+ rack
30
+ rack-test (0.6.2)
31
+ rack (>= 1.0)
32
+ rake (10.3.2)
33
+ rspec (2.14.1)
34
+ rspec-core (~> 2.14.0)
35
+ rspec-expectations (~> 2.14.0)
36
+ rspec-mocks (~> 2.14.0)
37
+ rspec-core (2.14.8)
38
+ rspec-expectations (2.14.5)
39
+ diff-lcs (>= 1.1.3, < 2.0)
40
+ rspec-mocks (2.14.6)
41
+ sinatra (1.4.5)
42
+ rack (~> 1.4)
43
+ rack-protection (~> 1.4)
44
+ tilt (~> 1.3, >= 1.3.4)
45
+ thor (0.19.1)
46
+ tilt (1.4.1)
47
+ xpath (2.0.0)
48
+ nokogiri (~> 1.3)
49
+
50
+ PLATFORMS
51
+ ruby
52
+
53
+ DEPENDENCIES
54
+ appraisal (~> 1.0)
55
+ capybara (~> 2.4.0)
56
+ mocha (~> 1.1)
57
+ orderly!
58
+ rspec (~> 2.14.0)
59
+ sinatra (~> 1.4)
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rspec", "~> 2.99.0"
6
+ gem "capybara", "~> 2.4.0"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,61 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ orderly (0.0.2)
5
+ capybara (>= 1.1)
6
+ rspec (>= 2.14)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ appraisal (1.0.2)
12
+ bundler
13
+ rake
14
+ thor (>= 0.14.0)
15
+ capybara (2.4.1)
16
+ mime-types (>= 1.16)
17
+ nokogiri (>= 1.3.3)
18
+ rack (>= 1.0.0)
19
+ rack-test (>= 0.5.4)
20
+ xpath (~> 2.0)
21
+ diff-lcs (1.2.5)
22
+ metaclass (0.0.4)
23
+ mime-types (2.3)
24
+ mini_portile (0.6.0)
25
+ mocha (1.1.0)
26
+ metaclass (~> 0.0.1)
27
+ nokogiri (1.6.3.1)
28
+ mini_portile (= 0.6.0)
29
+ rack (1.5.2)
30
+ rack-protection (1.5.3)
31
+ rack
32
+ rack-test (0.6.2)
33
+ rack (>= 1.0)
34
+ rake (10.3.2)
35
+ rspec (2.99.0)
36
+ rspec-core (~> 2.99.0)
37
+ rspec-expectations (~> 2.99.0)
38
+ rspec-mocks (~> 2.99.0)
39
+ rspec-core (2.99.2)
40
+ rspec-expectations (2.99.2)
41
+ diff-lcs (>= 1.1.3, < 2.0)
42
+ rspec-mocks (2.99.2)
43
+ sinatra (1.4.5)
44
+ rack (~> 1.4)
45
+ rack-protection (~> 1.4)
46
+ tilt (~> 1.3, >= 1.3.4)
47
+ thor (0.19.1)
48
+ tilt (1.4.1)
49
+ xpath (2.0.0)
50
+ nokogiri (~> 1.3)
51
+
52
+ PLATFORMS
53
+ ruby
54
+
55
+ DEPENDENCIES
56
+ appraisal (~> 1.0)
57
+ capybara (~> 2.4.0)
58
+ mocha (~> 1.1)
59
+ orderly!
60
+ rspec (~> 2.99.0)
61
+ sinatra (~> 1.4)
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rspec", "~> 3.0.0"
6
+ gem "capybara", "~> 2.4.0"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,65 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ orderly (0.0.2)
5
+ capybara (>= 1.1)
6
+ rspec (>= 2.14)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ appraisal (1.0.2)
12
+ bundler
13
+ rake
14
+ thor (>= 0.14.0)
15
+ capybara (2.4.1)
16
+ mime-types (>= 1.16)
17
+ nokogiri (>= 1.3.3)
18
+ rack (>= 1.0.0)
19
+ rack-test (>= 0.5.4)
20
+ xpath (~> 2.0)
21
+ diff-lcs (1.2.5)
22
+ metaclass (0.0.4)
23
+ mime-types (2.3)
24
+ mini_portile (0.6.0)
25
+ mocha (1.1.0)
26
+ metaclass (~> 0.0.1)
27
+ nokogiri (1.6.3.1)
28
+ mini_portile (= 0.6.0)
29
+ rack (1.5.2)
30
+ rack-protection (1.5.3)
31
+ rack
32
+ rack-test (0.6.2)
33
+ rack (>= 1.0)
34
+ rake (10.3.2)
35
+ rspec (3.0.0)
36
+ rspec-core (~> 3.0.0)
37
+ rspec-expectations (~> 3.0.0)
38
+ rspec-mocks (~> 3.0.0)
39
+ rspec-core (3.0.4)
40
+ rspec-support (~> 3.0.0)
41
+ rspec-expectations (3.0.4)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.0.0)
44
+ rspec-mocks (3.0.4)
45
+ rspec-support (~> 3.0.0)
46
+ rspec-support (3.0.4)
47
+ sinatra (1.4.5)
48
+ rack (~> 1.4)
49
+ rack-protection (~> 1.4)
50
+ tilt (~> 1.3, >= 1.3.4)
51
+ thor (0.19.1)
52
+ tilt (1.4.1)
53
+ xpath (2.0.0)
54
+ nokogiri (~> 1.3)
55
+
56
+ PLATFORMS
57
+ ruby
58
+
59
+ DEPENDENCIES
60
+ appraisal (~> 1.0)
61
+ capybara (~> 2.4.0)
62
+ mocha (~> 1.1)
63
+ orderly!
64
+ rspec (~> 3.0.0)
65
+ sinatra (~> 1.4)
@@ -1,3 +1,3 @@
1
1
  module Orderly
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -17,8 +17,9 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.rubyforge_project = "orderly"
19
19
 
20
- gem.add_development_dependency "rspec"
21
- gem.add_development_dependency "capybara"
22
- gem.add_development_dependency "mocha"
23
- gem.add_development_dependency "sinatra"
20
+ gem.add_dependency "rspec", ">= 2.14"
21
+ gem.add_dependency "capybara", ">= 1.1"
22
+ gem.add_development_dependency "mocha", "~> 1.1"
23
+ gem.add_development_dependency "sinatra", "~> 1.4"
24
+ gem.add_development_dependency "appraisal", "~> 1.0"
24
25
  end
@@ -12,26 +12,26 @@ describe Orderly do
12
12
  describe "appear_before" do
13
13
  it "asserts this is before that" do
14
14
  page.visit "/thisthenthat"
15
- this.should appear_before(that)
15
+ expect(this).to appear_before(that)
16
16
  end
17
17
 
18
18
  it "asserts this is not before that" do
19
19
  page.visit "/thatthenthis"
20
- this.should_not appear_before(that)
20
+ expect(this).not_to appear_before(that)
21
21
  end
22
22
 
23
23
  it "handles for this missing" do
24
24
  page.visit "/thisnothat"
25
25
  error_text = "Could not locate later content on page: #{that}"
26
- expect { this.should appear_before(that) }.to raise_error error_text
27
- expect { this.should_not appear_before(that) }.to raise_error error_text
26
+ expect { expect(this).to appear_before(that) }.to raise_error error_text
27
+ expect { expect(this).not_to appear_before(that) }.to raise_error error_text
28
28
  end
29
29
 
30
30
  it "handles for this missing" do
31
31
  page.visit "/thatnothis"
32
32
  error_text = "Could not locate earlier content on page: #{this}"
33
- expect { this.should appear_before(that) }.to raise_error error_text
34
- expect { this.should_not appear_before(that) }.to raise_error error_text
33
+ expect { expect(this).to appear_before(that) }.to raise_error error_text
34
+ expect { expect(this).not_to appear_before(that) }.to raise_error error_text
35
35
  end
36
36
  end
37
37
 
@@ -10,7 +10,10 @@ require 'capybara'
10
10
  require 'test_app'
11
11
 
12
12
  RSpec.configure do |config|
13
- config.treat_symbols_as_metadata_keys_with_true_values = true
13
+ if defined?(RSpec::Core::Version) && RSpec::Core::Version::STRING.to_f < 3.0
14
+ config.treat_symbols_as_metadata_keys_with_true_values = true
15
+ end
16
+
14
17
  config.run_all_when_everything_filtered = true
15
18
  config.filter_run :focus
16
19
  config.mock_with :mocha
metadata CHANGED
@@ -1,61 +1,86 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orderly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Gesimondo
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-13 00:00:00.000000000 Z
11
+ date: 2016-01-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
- requirement: &70320858742920 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :development
19
+ version: '2.14'
20
+ type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70320858742920
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '2.14'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: capybara
27
- requirement: &70320858742500 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
- version: '0'
33
- type: :development
33
+ version: '1.1'
34
+ type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70320858742500
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: mocha
38
- requirement: &70320858742080 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - "~>"
42
46
  - !ruby/object:Gem::Version
43
- version: '0'
47
+ version: '1.1'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70320858742080
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.1'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: sinatra
49
- requirement: &70320858741660 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - "~>"
53
60
  - !ruby/object:Gem::Version
54
- version: '0'
61
+ version: '1.4'
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *70320858741660
58
- description: ! 'orderly: an rspec assertion for request specs to assert that one piece
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: appraisal
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.0'
83
+ description: 'orderly: an rspec assertion for request specs to assert that one piece
59
84
  of content appears on the page before another.'
60
85
  email:
61
86
  - john@jmondo.com
@@ -63,12 +88,32 @@ executables: []
63
88
  extensions: []
64
89
  extra_rdoc_files: []
65
90
  files:
66
- - .gitignore
67
- - .rspec
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".travis.yml"
94
+ - Appraisals
68
95
  - Gemfile
69
96
  - LICENSE
70
97
  - README.md
71
98
  - Rakefile
99
+ - gemfiles/capybara_1.1.gemfile
100
+ - gemfiles/capybara_1.1.gemfile.lock
101
+ - gemfiles/capybara_2.0.gemfile
102
+ - gemfiles/capybara_2.0.gemfile.lock
103
+ - gemfiles/capybara_2.1.gemfile
104
+ - gemfiles/capybara_2.1.gemfile.lock
105
+ - gemfiles/capybara_2.2.gemfile
106
+ - gemfiles/capybara_2.2.gemfile.lock
107
+ - gemfiles/capybara_2.3.gemfile
108
+ - gemfiles/capybara_2.3.gemfile.lock
109
+ - gemfiles/capybara_2.4.gemfile
110
+ - gemfiles/capybara_2.4.gemfile.lock
111
+ - gemfiles/capybara_2.4_rspec_2.14.gemfile
112
+ - gemfiles/capybara_2.4_rspec_2.14.gemfile.lock
113
+ - gemfiles/capybara_2.4_rspec_2.gemfile
114
+ - gemfiles/capybara_2.4_rspec_2.gemfile.lock
115
+ - gemfiles/capybara_2.4_rspec_3.gemfile
116
+ - gemfiles/capybara_2.4_rspec_3.gemfile.lock
72
117
  - lib/orderly.rb
73
118
  - lib/orderly/version.rb
74
119
  - orderly.gemspec
@@ -77,27 +122,26 @@ files:
77
122
  - spec/test_app.rb
78
123
  homepage: https://github.com/jmondo/orderly
79
124
  licenses: []
125
+ metadata: {}
80
126
  post_install_message:
81
127
  rdoc_options: []
82
128
  require_paths:
83
129
  - lib
84
130
  required_ruby_version: !ruby/object:Gem::Requirement
85
- none: false
86
131
  requirements:
87
- - - ! '>='
132
+ - - ">="
88
133
  - !ruby/object:Gem::Version
89
134
  version: '0'
90
135
  required_rubygems_version: !ruby/object:Gem::Requirement
91
- none: false
92
136
  requirements:
93
- - - ! '>='
137
+ - - ">="
94
138
  - !ruby/object:Gem::Version
95
139
  version: '0'
96
140
  requirements: []
97
141
  rubyforge_project: orderly
98
- rubygems_version: 1.8.10
142
+ rubygems_version: 2.4.5
99
143
  signing_key:
100
- specification_version: 3
144
+ specification_version: 4
101
145
  summary: Assert this is before that
102
146
  test_files:
103
147
  - spec/lib/orderly_spec.rb