minitest-rails 2.1.0 → 2.1.1

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: 1c324bab2cf306972e4b226bc31db9b4f053f1bf
4
- data.tar.gz: ef52eb65b39d3cd23e9eaf96dbe672b5a7710291
3
+ metadata.gz: bf6577b6ce6d9da859bf47767f13696600ec474a
4
+ data.tar.gz: 07223c98e27cc1be07834eb3865fc6c51b461056
5
5
  SHA512:
6
- metadata.gz: 0f73788eeb9edf7bb8a6ba0bf786b827148349dee0085c618cc8715ed337363f2402c03e4d8bf5b89117a66a7e9e93812d079ae1f93917c9a636c09116d5751d
7
- data.tar.gz: 5fe9b55ac56a6c7334c505be134c7192e36309b8e1ac695f689ad3a628d685b5714417521d56db38673a0d99782aaf0c6a35e3a58ea0eb4df7e4d82bdf71fd75
6
+ metadata.gz: dbc04982898fed29de7fd1cace702da2ec6e3b2f60dca3be344545108b1a714425233860d52c4aeb5965e6f0f67b478291318e5898eb4890b4a43e71466e48ba
7
+ data.tar.gz: 2d5d3654e42f3e4386ee948ba4d1d8eb5568e895679f270596c71da0a9ddbfb4f8be9720667e98cba6c429893134b7b2d831cdeeeb8a1c559a4801982d444a1e
@@ -13,3 +13,10 @@ rvm:
13
13
  - 1.9.3
14
14
  env:
15
15
  - "RAILS_VERSION=4.1"
16
+ notifications:
17
+ webhooks:
18
+ urls:
19
+ - https://webhooks.gitter.im/e/c3806b220bb40c23430e
20
+ on_success: change # options: [always|never|change] default: always
21
+ on_failure: always # options: [always|never|change] default: always
22
+ on_start: false # default: false
@@ -1,3 +1,10 @@
1
+ === 2.1.1 / 2014-10-28
2
+
3
+ * Fix scaffold generator to use accessor instead of ivar (isaacsloan)
4
+ * Add Gitter info to README
5
+
6
+ https://github.com/blowmage/minitest-rails/compare/v2.1.0...v2.1.1
7
+
1
8
  === 2.1.0 / 2014-07-08
2
9
 
3
10
  * Allow use of additional_spec in Minitest's Spec DSL.
@@ -4,6 +4,7 @@ Minitest integration for Rails 4.1+
4
4
 
5
5
  {<img src="https://secure.travis-ci.org/blowmage/minitest-rails.png" alt="Build Status" />}[http://travis-ci.org/blowmage/minitest-rails]
6
6
  {<img src="https://codeclimate.com/github/blowmage/minitest-rails.png" />}[https://codeclimate.com/github/blowmage/minitest-rails]
7
+ {<img src="https://badges.gitter.im/Join Chat.svg" />}[https://gitter.im/blowmage/minitest-rails]
7
8
 
8
9
  == Install
9
10
 
@@ -89,6 +90,10 @@ Join the mailing list to get help or offer suggestions.
89
90
 
90
91
  https://groups.google.com/group/minitest-rails
91
92
 
93
+ Or join the discussion on Gitter.
94
+
95
+ https://gitter.im/blowmage/minitest-rails
96
+
92
97
  == License
93
98
 
94
99
  Copyright (c) 2014 Mike Moore
@@ -29,7 +29,7 @@ module Minitest
29
29
  if %w(password password_confirmation).include?(name) && attributes.any?(&:password_digest?)
30
30
  "#{name}: 'secret'"
31
31
  else
32
- "#{name}: @#{singular_table_name}.#{name}"
32
+ "#{name}: #{singular_table_name}.#{name}"
33
33
  end
34
34
  end.sort.join(", ")
35
35
  end
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Rails
3
- VERSION = "2.1.0"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: minitest-rails 2.1.0.20140708182826 ruby lib
2
+ # stub: minitest-rails 2.1.1.20141028151650 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "minitest-rails"
6
- s.version = "2.1.0.20140708182826"
6
+ s.version = "2.1.1.20141028151650"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.authors = ["Mike Moore"]
11
- s.date = "2014-07-09"
11
+ s.date = "2014-10-28"
12
12
  s.description = "Adds Minitest as the default testing library in Rails"
13
13
  s.email = ["mike@blowmage.com"]
14
14
  s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
@@ -5,20 +5,22 @@ class TestScaffoldGenerator < GeneratorTest
5
5
 
6
6
  def test_scaffold_generator
7
7
  assert_output(/create test\/controllers\/users_controller_test.rb/m) do
8
- Minitest::Generators::ScaffoldGenerator.start ["user"]
8
+ Minitest::Generators::ScaffoldGenerator.start ["User", "name:string", "email:string"]
9
9
  end
10
10
  assert File.exists? "test/controllers/users_controller_test.rb"
11
11
  contents = File.read "test/controllers/users_controller_test.rb"
12
12
  assert_match(/class UsersControllerTest/m, contents)
13
+ assert_match(/post :create, user: { email: user.email, name: user.name }/m, contents)
13
14
  end
14
15
 
15
16
  def test_scaffold_generator_spec
16
17
  assert_output(/create test\/controllers\/users_controller_test.rb/m) do
17
- Minitest::Generators::ScaffoldGenerator.start ["user", "--spec"]
18
+ Minitest::Generators::ScaffoldGenerator.start ["User", "name:string", "email:string", "--spec"]
18
19
  end
19
20
  assert File.exists? "test/controllers/users_controller_test.rb"
20
21
  contents = File.read "test/controllers/users_controller_test.rb"
21
22
  assert_match(/describe UsersController do/m, contents)
23
+ assert_match(/post :create, user: { email: user.email, name: user.name }/m, contents)
22
24
  end
23
25
 
24
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-09 00:00:00.000000000 Z
11
+ date: 2014-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.12'
75
+ version: '3.13'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.12'
82
+ version: '3.13'
83
83
  description: Adds Minitest as the default testing library in Rails
84
84
  email:
85
85
  - mike@blowmage.com