warp 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3802d2e3407dbe2e1300d19a088f37e6e75daf4e
4
- data.tar.gz: 61fb555af4d35a71080e702e89d06f1009fb4eb3
3
+ metadata.gz: effa8ba349f121dcb6e51ef2eb1ff3f22e9b05bb
4
+ data.tar.gz: ac4cee18df6a7b412bda6a1554017c51e76bcf7d
5
5
  SHA512:
6
- metadata.gz: fe382fe5bc4ea7fb08c7802ad0b78b58e08f64f3e48d33ad81b8a12d59f0561f30b7ab8b860a53c2d57dd57f134b80a29ecac9d780a76f5291ae072c52f9a9a6
7
- data.tar.gz: 7bcadbe052228fe6b7ddcf9d767251170aa61c9f92003a85296c9201f0c8b55c80a4cb8fce830ae94efe3d54f9b9cfda8f2235ae34a93a90e8f15087f43a831c
6
+ metadata.gz: 0b82cd6436a54a0ff4a8d6562d60ff3158e55a048ea7dfa8dcac98fa6345546a00bbd7fccf0434a5591a519d81a18515bd60e8addb6a63ac7f7af9c21fba4635
7
+ data.tar.gz: 8400d766af304265baf4bf3ab533ff1baf67f53aa5c95c45bad17be3be1acc622054c84af48c7e3afba40e1d9b2c30a30f27787cf22f512826e266a8679c87c7
data/.rspec CHANGED
@@ -1,3 +1,2 @@
1
1
  --color
2
- --format Fuubar
3
-
2
+ --format Fuubar
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.1.2
1
+ ruby-2.1.5
data/.travis.yml CHANGED
@@ -5,37 +5,23 @@ env:
5
5
  - TRAVIS_CI=1
6
6
 
7
7
  rvm:
8
- - 1.9.2
9
8
  - 1.9.3
10
- - 2.0.0
11
- - 2.1.2
9
+ - 2.1.5
10
+ - 2.0.0-preview2
12
11
 
13
12
  gemfile:
13
+ - gemfiles/rails_3.2_rspec_2.14.gemfile
14
14
  - gemfiles/rails_3.2_rspec_2.99.gemfile
15
- - gemfiles/rails_3.2_rspec_3.0.gemfile
16
15
  - gemfiles/rails_3.2_rspec_3.1.gemfile
16
+ - gemfiles/rails_4.0_rspec_2.14.gemfile
17
17
  - gemfiles/rails_4.0_rspec_2.99.gemfile
18
- - gemfiles/rails_4.0_rspec_3.0.gemfile
19
18
  - gemfiles/rails_4.0_rspec_3.1.gemfile
19
+ - gemfiles/rails_4.1_rspec_2.14.gemfile
20
20
  - gemfiles/rails_4.1_rspec_2.99.gemfile
21
- - gemfiles/rails_4.1_rspec_3.0.gemfile
22
21
  - gemfiles/rails_4.1_rspec_3.1.gemfile
23
-
24
-
25
- matrix:
26
- exclude:
27
- - rvm: 1.9.2
28
- gemfile: gemfiles/rails_4.0_rspec_2.99.gemfile
29
- - rvm: 1.9.2
30
- gemfile: gemfiles/rails_4.0_rspec_3.0.gemfile
31
- - rvm: 1.9.2
32
- gemfile: gemfiles/rails_4.0_rspec_3.1.gemfile
33
- - rvm: 1.9.2
34
- gemfile: gemfiles/rails_4.1_rspec_2.99.gemfile
35
- - rvm: 1.9.2
36
- gemfile: gemfiles/rails_4.1_rspec_3.0.gemfile
37
- - rvm: 1.9.2
38
- gemfile: gemfiles/rails_4.1_rspec_3.1.gemfile
22
+ - gemfiles/rails_4.2.rc1_rspec_2.14.gemfile
23
+ - gemfiles/rails_4.2.rc1_rspec_2.99.gemfile
24
+ - gemfiles/rails_4.2.rc1_rspec_3.1.gemfile
39
25
 
40
26
  bundler_args: --without tools
41
27
 
data/Appraisals CHANGED
@@ -1,5 +1,5 @@
1
- ["3.2", "4.0", "4.1"].each do |rails|
2
- ["2.99", "3.0", "3.1"].each do |rspec|
1
+ ["3.2", "4.0", "4.1", "4.2.rc1"].each do |rails|
2
+ ["2.14", "2.99", "3.1"].each do |rspec|
3
3
  appraise "rails-#{rails}-rspec-#{rspec}" do
4
4
  rails_v = "~> #{rails}"
5
5
  rspec_v = "~> #{rspec}"
@@ -10,10 +10,6 @@
10
10
  gem "actionview", rails_v, require: "action_view" if rails == "4.1"
11
11
 
12
12
  gem "rspec", rspec_v
13
- gem "rspec-core", rspec_v
14
- gem "rspec-expectations", rspec_v
15
- gem "rspec-mocks", rspec_v
16
- gem "rspec-support", rspec_v unless rspec == "2.99"
17
13
  end
18
14
  end
19
15
  end
data/README.md CHANGED
@@ -1,13 +1,18 @@
1
+ [![Build Status](https://img.shields.io/travis/thomasfedb/warp.svg?style=flat-square)](https://travis-ci.org/thomasfedb/warp)
2
+ [![Coverage Status](https://img.shields.io/coveralls/thomasfedb/warp.svg?style=flat-square)](https://coveralls.io/r/thomasfedb/warp?branch=master)
3
+ [![Gem Version](https://img.shields.io/gem/v/warp.svg?style=flat-square)](http://rubygems.org/gems/warp)
4
+ [![Code Climate](https://img.shields.io/codeclimate/github/thomasfedb/warp.svg?style=flat-square)](https://codeclimate.com/github/thomasfedb/warp)
5
+
1
6
  # Warp
2
7
 
3
- [![Build Status](https://travis-ci.org/thomasfedb/warp.png)](https://travis-ci.org/thomasfedb/warp)
4
- [![Coverage Status](https://coveralls.io/repos/thomasfedb/warp/badge.png?branch=master)](https://coveralls.io/r/thomasfedb/warp?branch=master)
5
- [![Gem Version](https://badge.fury.io/rb/warp.png)](http://rubygems.org/gems/warp)
6
- [![Code Climate](https://codeclimate.com/github/thomasfedb/warp.png)](https://codeclimate.com/github/thomasfedb/warp)
8
+ Warp provides a selection of inteligent RSpec matchers for your model, controller and feature specifications.
7
9
 
8
- RSpec Matchers to simplify writing unit and feature tests for your Rails applications.
10
+ Warp's matchers are written to be intuitive, easy to use, and to avoid testing Rails itself. The matchers also take advantage of RSpec's [composing matchers](http://www.rubydoc.info/gems/rspec-expectations/frames#Composing_Matchers) wherever possible.
9
11
 
10
- Compatible with Ruby 1.9.2 and greater, Rails 3.2 and greater, and RSpec 2.99 and greater.
12
+ Compatible with:
13
+ - Ruby 1.9.2 and greater
14
+ - Rails 3.2 and greater
15
+ - RSpec 2.99 and greater
11
16
 
12
17
  ## Installation
13
18
 
@@ -216,8 +221,8 @@ specify { expect(user).to validate_uniqueness_of(:email, scope: :company) }
216
221
  ## Contributing
217
222
 
218
223
  1. Fork it
219
- 2. Create your feature branch (`git checkout -b my-new-feature`)
224
+ 2. Create a branch (`git checkout -b super-foo`)
220
225
  3. Add your feature and specs.
221
- 4. Commit your changes (`git commit -am 'Add some feature'`)
222
- 5. Push to the branch (`git push origin my-new-feature`)
226
+ 4. Commit your changes (`git commit -am 'Extra-super foo-matic.'`)
227
+ 5. Push to the branch (`git push origin super-foo`)
223
228
  6. Create new Pull Request
@@ -11,11 +11,7 @@ gem "coveralls", :require => false
11
11
  gem "activesupport", "~> 3.2", :require => "active_support/all"
12
12
  gem "actionpack", "~> 3.2", :require => "action_controller"
13
13
  gem "activerecord", "~> 3.2", :require => "active_record"
14
- gem "rspec", "~> 3.0"
15
- gem "rspec-core", "~> 3.0"
16
- gem "rspec-expectations", "~> 3.0"
17
- gem "rspec-mocks", "~> 3.0"
18
- gem "rspec-support", "~> 3.0"
14
+ gem "rspec", "~> 2.14"
19
15
 
20
16
  group :tools do
21
17
  gem "guard"
@@ -12,9 +12,6 @@ gem "activesupport", "~> 3.2", :require => "active_support/all"
12
12
  gem "actionpack", "~> 3.2", :require => "action_controller"
13
13
  gem "activerecord", "~> 3.2", :require => "active_record"
14
14
  gem "rspec", "~> 2.99"
15
- gem "rspec-core", "~> 2.99"
16
- gem "rspec-expectations", "~> 2.99"
17
- gem "rspec-mocks", "~> 2.99"
18
15
 
19
16
  group :tools do
20
17
  gem "guard"
@@ -12,10 +12,6 @@ gem "activesupport", "~> 3.2", :require => "active_support/all"
12
12
  gem "actionpack", "~> 3.2", :require => "action_controller"
13
13
  gem "activerecord", "~> 3.2", :require => "active_record"
14
14
  gem "rspec", "~> 3.1"
15
- gem "rspec-core", "~> 3.1"
16
- gem "rspec-expectations", "~> 3.1"
17
- gem "rspec-mocks", "~> 3.1"
18
- gem "rspec-support", "~> 3.1"
19
15
 
20
16
  group :tools do
21
17
  gem "guard"
@@ -11,11 +11,7 @@ gem "coveralls", :require => false
11
11
  gem "activesupport", "~> 4.0", :require => "active_support/all"
12
12
  gem "actionpack", "~> 4.0", :require => "action_controller"
13
13
  gem "activerecord", "~> 4.0", :require => "active_record"
14
- gem "rspec", "~> 3.0"
15
- gem "rspec-core", "~> 3.0"
16
- gem "rspec-expectations", "~> 3.0"
17
- gem "rspec-mocks", "~> 3.0"
18
- gem "rspec-support", "~> 3.0"
14
+ gem "rspec", "~> 2.14"
19
15
 
20
16
  group :tools do
21
17
  gem "guard"
@@ -12,9 +12,6 @@ gem "activesupport", "~> 4.0", :require => "active_support/all"
12
12
  gem "actionpack", "~> 4.0", :require => "action_controller"
13
13
  gem "activerecord", "~> 4.0", :require => "active_record"
14
14
  gem "rspec", "~> 2.99"
15
- gem "rspec-core", "~> 2.99"
16
- gem "rspec-expectations", "~> 2.99"
17
- gem "rspec-mocks", "~> 2.99"
18
15
 
19
16
  group :tools do
20
17
  gem "guard"
@@ -12,10 +12,6 @@ gem "activesupport", "~> 4.0", :require => "active_support/all"
12
12
  gem "actionpack", "~> 4.0", :require => "action_controller"
13
13
  gem "activerecord", "~> 4.0", :require => "active_record"
14
14
  gem "rspec", "~> 3.1"
15
- gem "rspec-core", "~> 3.1"
16
- gem "rspec-expectations", "~> 3.1"
17
- gem "rspec-mocks", "~> 3.1"
18
- gem "rspec-support", "~> 3.1"
19
15
 
20
16
  group :tools do
21
17
  gem "guard"
@@ -12,11 +12,7 @@ gem "activesupport", "~> 4.1", :require => "active_support/all"
12
12
  gem "actionpack", "~> 4.1", :require => "action_controller"
13
13
  gem "activerecord", "~> 4.1", :require => "active_record"
14
14
  gem "actionview", "~> 4.1", :require => "action_view"
15
- gem "rspec", "~> 3.0"
16
- gem "rspec-core", "~> 3.0"
17
- gem "rspec-expectations", "~> 3.0"
18
- gem "rspec-mocks", "~> 3.0"
19
- gem "rspec-support", "~> 3.0"
15
+ gem "rspec", "~> 2.14"
20
16
 
21
17
  group :tools do
22
18
  gem "guard"
@@ -13,9 +13,6 @@ gem "actionpack", "~> 4.1", :require => "action_controller"
13
13
  gem "activerecord", "~> 4.1", :require => "active_record"
14
14
  gem "actionview", "~> 4.1", :require => "action_view"
15
15
  gem "rspec", "~> 2.99"
16
- gem "rspec-core", "~> 2.99"
17
- gem "rspec-expectations", "~> 2.99"
18
- gem "rspec-mocks", "~> 2.99"
19
16
 
20
17
  group :tools do
21
18
  gem "guard"
@@ -13,10 +13,6 @@ gem "actionpack", "~> 4.1", :require => "action_controller"
13
13
  gem "activerecord", "~> 4.1", :require => "active_record"
14
14
  gem "actionview", "~> 4.1", :require => "action_view"
15
15
  gem "rspec", "~> 3.1"
16
- gem "rspec-core", "~> 3.1"
17
- gem "rspec-expectations", "~> 3.1"
18
- gem "rspec-mocks", "~> 3.1"
19
- gem "rspec-support", "~> 3.1"
20
16
 
21
17
  group :tools do
22
18
  gem "guard"
@@ -0,0 +1,22 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "bundler"
6
+ gem "appraisal"
7
+ gem "rake"
8
+ gem "fuubar"
9
+ gem "simplecov", :require => false
10
+ gem "coveralls", :require => false
11
+ gem "activesupport", "~> 4.2.rc1", :require => "active_support/all"
12
+ gem "actionpack", "~> 4.2.rc1", :require => "action_controller"
13
+ gem "activerecord", "~> 4.2.rc1", :require => "active_record"
14
+ gem "rspec", "~> 2.14"
15
+
16
+ group :tools do
17
+ gem "guard"
18
+ gem "guard-rspec"
19
+ gem "byebug"
20
+ end
21
+
22
+ gemspec :path => "../"
@@ -0,0 +1,22 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "bundler"
6
+ gem "appraisal"
7
+ gem "rake"
8
+ gem "fuubar"
9
+ gem "simplecov", :require => false
10
+ gem "coveralls", :require => false
11
+ gem "activesupport", "~> 4.2.rc1", :require => "active_support/all"
12
+ gem "actionpack", "~> 4.2.rc1", :require => "action_controller"
13
+ gem "activerecord", "~> 4.2.rc1", :require => "active_record"
14
+ gem "rspec", "~> 2.99"
15
+
16
+ group :tools do
17
+ gem "guard"
18
+ gem "guard-rspec"
19
+ gem "byebug"
20
+ end
21
+
22
+ gemspec :path => "../"
@@ -0,0 +1,22 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "bundler"
6
+ gem "appraisal"
7
+ gem "rake"
8
+ gem "fuubar"
9
+ gem "simplecov", :require => false
10
+ gem "coveralls", :require => false
11
+ gem "activesupport", "~> 4.2.rc1", :require => "active_support/all"
12
+ gem "actionpack", "~> 4.2.rc1", :require => "action_controller"
13
+ gem "activerecord", "~> 4.2.rc1", :require => "active_record"
14
+ gem "rspec", "~> 3.1"
15
+
16
+ group :tools do
17
+ gem "guard"
18
+ gem "guard-rspec"
19
+ gem "byebug"
20
+ end
21
+
22
+ gemspec :path => "../"
@@ -2,7 +2,6 @@ module Warp
2
2
  module ModelMatchers
3
3
  class ErrorMatcher < Warp::Matcher
4
4
 
5
-
6
5
  end
7
6
 
8
7
  def have_error
data/lib/warp/version.rb CHANGED
@@ -2,7 +2,7 @@ module Warp
2
2
  module VERSION
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  BETA = nil
8
8
 
data/spec/spec_helper.rb CHANGED
@@ -8,15 +8,15 @@ unless ENV["TRAVIS_CI"]
8
8
  end
9
9
  end
10
10
 
11
- require "simplecov"
12
-
13
11
  if ENV["TRAVIS_CI"]
12
+ require "simplecov"
14
13
  require "coveralls"
14
+
15
15
  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
16
- end
17
16
 
18
- SimpleCov.start do
19
- add_filter "/spec/"
17
+ SimpleCov.start do
18
+ add_filter "/spec/"
19
+ end
20
20
  end
21
21
 
22
22
  if ENV["TRAVIS_CI"]
@@ -25,6 +25,14 @@ else
25
25
  Bundler.require(:default, :tools)
26
26
  end
27
27
 
28
+ if ActionPack.respond_to?(:version) && ActionPack.version.to_s =~ /^4\.2/
29
+ module Rails
30
+ def self.env
31
+ "default_env"
32
+ end
33
+ end
34
+ end
35
+
28
36
  Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f }
29
37
 
30
38
  RSpec.configure do |config|
@@ -11,7 +11,6 @@ module ControllerHelpers
11
11
  klass.send :include, ActionController::Rendering
12
12
  klass.send :include, ActionController::Flash
13
13
  klass.send :include, AbstractController::Rendering
14
- klass.send :include, ActionController::Rendering
15
14
 
16
15
  klass.send :cattr_accessor, :spec
17
16
  klass.spec = self
data/warp.gemspec CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Warp::VERSION
9
9
  spec.authors = ["Thomas Drake-Brockman"]
10
10
  spec.email = ["thom@sfedb.com"]
11
- spec.description = %q{Rails matchers for your RSpec specs.}
12
- spec.summary = %q{Warp provides matchers for testing your Rails application with RSpec.}
13
- spec.homepage = ""
11
+ spec.summary = "Awesome RSpec matchers for testing your Rails applications."
12
+ spec.description = "Warp provides a selection of inteligent RSpec matchers for your model, controller and feature specifications."
13
+ spec.homepage = "https://github.com/thomasfedb/warp"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Drake-Brockman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-08 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -24,7 +24,8 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.14.0
27
- description: Rails matchers for your RSpec specs.
27
+ description: Warp provides a selection of inteligent RSpec matchers for your model,
28
+ controller and feature specifications.
28
29
  email:
29
30
  - thom@sfedb.com
30
31
  executables: []
@@ -43,15 +44,18 @@ files:
43
44
  - LICENSE
44
45
  - README.md
45
46
  - Rakefile
47
+ - gemfiles/rails_3.2_rspec_2.14.gemfile
46
48
  - gemfiles/rails_3.2_rspec_2.99.gemfile
47
- - gemfiles/rails_3.2_rspec_3.0.gemfile
48
49
  - gemfiles/rails_3.2_rspec_3.1.gemfile
50
+ - gemfiles/rails_4.0_rspec_2.14.gemfile
49
51
  - gemfiles/rails_4.0_rspec_2.99.gemfile
50
- - gemfiles/rails_4.0_rspec_3.0.gemfile
51
52
  - gemfiles/rails_4.0_rspec_3.1.gemfile
53
+ - gemfiles/rails_4.1_rspec_2.14.gemfile
52
54
  - gemfiles/rails_4.1_rspec_2.99.gemfile
53
- - gemfiles/rails_4.1_rspec_3.0.gemfile
54
55
  - gemfiles/rails_4.1_rspec_3.1.gemfile
56
+ - gemfiles/rails_4.2.rc1_rspec_2.14.gemfile
57
+ - gemfiles/rails_4.2.rc1_rspec_2.99.gemfile
58
+ - gemfiles/rails_4.2.rc1_rspec_3.1.gemfile
55
59
  - lib/warp.rb
56
60
  - lib/warp/controller_matchers.rb
57
61
  - lib/warp/controller_matchers/assign_matcher.rb
@@ -76,7 +80,7 @@ files:
76
80
  - spec/warp/model_helpers/attribute_matcher_spec.rb
77
81
  - spec/warp/model_helpers/validation_matcher_spec.rb
78
82
  - warp.gemspec
79
- homepage: ''
83
+ homepage: https://github.com/thomasfedb/warp
80
84
  licenses:
81
85
  - MIT
82
86
  metadata: {}
@@ -96,10 +100,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
100
  version: '0'
97
101
  requirements: []
98
102
  rubyforge_project:
99
- rubygems_version: 2.2.1
103
+ rubygems_version: 2.4.3
100
104
  signing_key:
101
105
  specification_version: 4
102
- summary: Warp provides matchers for testing your Rails application with RSpec.
106
+ summary: Awesome RSpec matchers for testing your Rails applications.
103
107
  test_files:
104
108
  - spec/spec_helper.rb
105
109
  - spec/support/controller_helpers.rb