kitestrings 1.0.14 → 1.0.15

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: df7ed23de080fadb279e04672d4317c86160169f
4
- data.tar.gz: 7aa6417285a8bd8c7cc8a53d2fcc8fed4df92386
3
+ metadata.gz: 998f61ff812d2cb4b5d8fdb5fd97e9973aac9f72
4
+ data.tar.gz: 54840cef2909d649ca2b3314ca0ec1b2f7c88055
5
5
  SHA512:
6
- metadata.gz: 35aa28fcde35344c176d9508a513a41cd00017b34e3d188b3779e25c505a4a581f24eb8c1c54e53accc5800530af321fe31e1279390f9a5a403dbffa721f7d37
7
- data.tar.gz: 0dff13d849b4a8fe8639d76389f9ef082d827f8ea9aba9912a22ca8e26f57d8043d5cfdb2177a3404bce9af53c627a91ed88f739d9958ca8d16a3f339ebf5664
6
+ metadata.gz: 22714f5b7f1197884718f0331c577c90a6f488834740067dd9b9c650f4d99878fade34a152fa0ce7a638df08d3ee4065dae1268b4e8e5915c2fc597de2890298
7
+ data.tar.gz: 888268a6ea0ca16ea4b6cc3df0f6cd36b8d24c02c1d4ba55de94246d628568bed009af5e1d85f982ac06891a1d4afc459105aa0a52dc0ae511dbd6a522741528
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.1
data/kitestrings.gemspec CHANGED
@@ -6,8 +6,9 @@ require 'kitestrings/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "kitestrings"
8
8
  spec.version = Kitestrings::VERSION
9
- spec.authors = ["ridget", "Matt Connolly"]
10
- spec.email = ["tom.ridge@tworedkites.com", "matt.connolly@tworedkites.com"]
9
+ spec.authors = ["Tom Ridge", "Matt Connolly", "Geoffrey Donaldson"]
10
+ spec.email = ["tom.ridge@tworedkites.com", "matt.connolly@tworedkites.com",
11
+ "geoffrey.donaldson@tworedkites.com"]
11
12
  spec.summary = %q{For all the 2rk goodness}
12
13
  spec.description = %q{}
13
14
  spec.homepage = ""
@@ -22,7 +22,7 @@ describe <%= controller_class_name %>Controller do
22
22
  {index: :get, show: :get, new: :get, create: :post, edit: :get, update: :put, destroy: :delete}.each do |v, m|
23
23
  it "#{m} #{v} should logout" do
24
24
  self.send(m, v, id: <%= file_name %>)
25
- should redirect_to new_user_session_path
25
+ expect(response).to redirect_to new_user_session_path
26
26
  end
27
27
  end
28
28
  end
@@ -37,28 +37,28 @@ describe <%= controller_class_name %>Controller do
37
37
  get :index
38
38
  end
39
39
 
40
- it { should assign_to(:<%= table_name %>).with_items([<%= file_name %>]) }
41
- it { should render_template :index }
42
- it { should have_only_fractures(:new_<%= file_name %>_link) }
40
+ it { expect(response).to assign_to(:<%= table_name %>).with_items([<%= file_name %>]) }
41
+ it { expect(response).to render_template :index }
42
+ it { expect(response).to have_only_fractures(:new_<%= file_name %>_link) }
43
43
  end
44
44
 
45
45
  <% end -%>
46
46
  describe 'GET show' do
47
47
  before { get :show, id: <%= file_name %> }
48
48
 
49
- it { should assign_to(:<%= file_name %>).with(<%= file_name %>) }
50
- it { should render_template :show }
51
- it { should have_only_fractures(:edit_<%= file_name %>_link) }
49
+ it { expect(response).to assign_to(:<%= file_name %>).with(<%= file_name %>) }
50
+ it { expect(response).to render_template :show }
51
+ it { expect(response).to have_only_fractures(:edit_<%= file_name %>_link) }
52
52
  end
53
53
 
54
54
  describe 'GET new' do
55
55
  before { get :new }
56
56
 
57
- it { should assign_to(:<%= file_name %>).with_kind_of(<%= class_name %>) }
58
- #it { should assign_to('<%= file_name %>.parent').with(parent) }
59
- it { should render_template :new }
60
- it { should have_only_fractures :cancel_new_<%= file_name %>_link }
61
- it { should have_a_form.that_is_new.with_path_of(<%= table_name %>_path)}
57
+ it { expect(response).to assign_to(:<%= file_name %>).with_kind_of(<%= class_name %>) }
58
+ #it { expect(response).to assign_to('<%= file_name %>.parent').with(parent) }
59
+ it { expect(response).to render_template :new }
60
+ it { expect(response).to have_only_fractures :cancel_new_<%= file_name %>_link }
61
+ it { expect(response).to have_a_form.that_is_new.with_path_of(<%= table_name %>_path)}
62
62
  end
63
63
 
64
64
  describe 'POST create' do
@@ -68,9 +68,9 @@ describe <%= controller_class_name %>Controller do
68
68
  post :create
69
69
  end
70
70
 
71
- it { should redirect_to <%= file_name %>_path(<%= class_name %>.last) }
72
- it { should assign_to(:<%= file_name %>).with(<%= class_name %>.last) }
73
- #it { should assign_to('<%= file_name %>.parent').with(parent) }
71
+ it { expect(response).to redirect_to <%= file_name %>_path(<%= class_name %>.last) }
72
+ it { expect(response).to assign_to(:<%= file_name %>).with(<%= class_name %>.last) }
73
+ #it { expect(response).to assign_to('<%= file_name %>.parent').with(parent) }
74
74
  end
75
75
 
76
76
  context 'invalid' do
@@ -78,21 +78,21 @@ describe <%= controller_class_name %>Controller do
78
78
  <%= class_name %>.any_instance.stub(:valid?).and_return(false)
79
79
  post :create
80
80
  end
81
- it { should assign_to(:<%= file_name %>).with_kind_of(<%= class_name %>) }
82
- #it { should assign_to('<%= file_name %>.parent').with(parent) }
83
- it { should render_template :new }
84
- it { should have_only_fractures :cancel_new_<%= file_name %>_link }
85
- it { should have_a_form.that_is_new.with_path_of(<%= table_name %>_path)}
81
+ it { expect(response).to assign_to(:<%= file_name %>).with_kind_of(<%= class_name %>) }
82
+ #it { expect(response).to assign_to('<%= file_name %>.parent').with(parent) }
83
+ it { expect(response).to render_template :new }
84
+ it { expect(response).to have_only_fractures :cancel_new_<%= file_name %>_link }
85
+ it { expect(response).to have_a_form.that_is_new.with_path_of(<%= table_name %>_path)}
86
86
  end
87
87
  end
88
88
 
89
89
  describe 'GET edit' do
90
90
  before { get :edit, id: <%= file_name %> }
91
91
 
92
- it { should assign_to(:<%= file_name %>).with(<%= file_name %>) }
93
- it { should render_template :edit }
94
- it { should have_only_fractures :cancel_edit_<%= file_name %>_link }
95
- it { should have_a_form.that_is_edit.with_path_of(<%= file_name %>_path) }
92
+ it { expect(response).to assign_to(:<%= file_name %>).with(<%= file_name %>) }
93
+ it { expect(response).to render_template :edit }
94
+ it { expect(response).to have_only_fractures :cancel_edit_<%= file_name %>_link }
95
+ it { expect(response).to have_a_form.that_is_edit.with_path_of(<%= file_name %>_path) }
96
96
  end
97
97
 
98
98
  describe 'PUT update' do
@@ -102,8 +102,8 @@ describe <%= controller_class_name %>Controller do
102
102
  put :update, id: <%= file_name %>
103
103
  end
104
104
 
105
- it { should assign_to(:<%= file_name %>).with(<%= file_name %>) }
106
- it { should redirect_to <%= file_name %>_path(<%= file_name %>) }
105
+ it { expect(response).to assign_to(:<%= file_name %>).with(<%= file_name %>) }
106
+ it { expect(response).to redirect_to <%= file_name %>_path(<%= file_name %>) }
107
107
  end
108
108
  context 'invalid' do
109
109
  before do
@@ -112,10 +112,10 @@ describe <%= controller_class_name %>Controller do
112
112
  put :update, id: <%= file_name %>
113
113
  end
114
114
 
115
- it { should assign_to(:<%= file_name %>).with(<%= file_name %>) }
116
- it { should render_template :edit }
117
- it { should have_only_fractures :cancel_edit_<%= file_name %>_link }
118
- it { should have_a_form.that_is_edit.with_path_of(<%= file_name %>_path) }
115
+ it { expect(response).to assign_to(:<%= file_name %>).with(<%= file_name %>) }
116
+ it { expect(response).to render_template :edit }
117
+ it { expect(response).to have_only_fractures :cancel_edit_<%= file_name %>_link }
118
+ it { expect(response).to have_a_form.that_is_edit.with_path_of(<%= file_name %>_path) }
119
119
  end
120
120
  end
121
121
 
@@ -123,7 +123,7 @@ describe <%= controller_class_name %>Controller do
123
123
  before { delete :destroy, id: <%= file_name %> }
124
124
 
125
125
  it { expect(<%= class_name %>.find_by_id(<%= file_name %>.id)).to be_nil }
126
- it { should redirect_to <%= index_helper %>_path }
126
+ it { expect(response).to redirect_to <%= index_helper %>_path }
127
127
  end
128
128
  end
129
129
  end
@@ -5,14 +5,14 @@ describe <%= controller_class_name %>Controller do
5
5
  describe 'routing' do
6
6
 
7
7
  <% unless options[:singleton] -%>
8
- it('routes to #index') { get('/<%= ns_table_name %>').should route_to('<%= ns_table_name %>#index') }
8
+ it('routes to #index') { expect(get('/<%= ns_table_name %>')).to route_to('<%= ns_table_name %>#index') }
9
9
  <% end -%>
10
- it('routes to #new') { get('/<%= ns_table_name %>/new').should route_to('<%= ns_table_name %>#new') }
11
- it('routes to #show') { get('/<%= ns_table_name %>/1').should route_to('<%= ns_table_name %>#show', id: '1') }
12
- it('routes to #edit') { get('/<%= ns_table_name %>/1/edit').should route_to('<%= ns_table_name %>#edit', id: '1') }
13
- it('routes to #create') { post('/<%= ns_table_name %>').should route_to('<%= ns_table_name %>#create') }
14
- it('routes to #update') { put('/<%= ns_table_name %>/1').should route_to('<%= ns_table_name %>#update', id: '1') }
15
- it('routes to #destroy') { delete('/<%= ns_table_name %>/1').should route_to('<%= ns_table_name %>#destroy', id: '1') }
10
+ it('routes to #new') { expect(get('/<%= ns_table_name %>/new')).to route_to('<%= ns_table_name %>#new') }
11
+ it('routes to #show') { expect(get('/<%= ns_table_name %>/1')).to route_to('<%= ns_table_name %>#show', id: '1') }
12
+ it('routes to #edit') { expect(get('/<%= ns_table_name %>/1/edit')).to route_to('<%= ns_table_name %>#edit', id: '1') }
13
+ it('routes to #create') { expect(post('/<%= ns_table_name %>')).to route_to('<%= ns_table_name %>#create') }
14
+ it('routes to #update') { expect(put('/<%= ns_table_name %>/1')).to route_to('<%= ns_table_name %>#update', id: '1') }
15
+ it('routes to #destroy') { expect(delete('/<%= ns_table_name %>/1')).to route_to('<%= ns_table_name %>#destroy', id: '1') }
16
16
  end
17
17
  end
18
18
  <% end -%>
@@ -1,3 +1,3 @@
1
1
  module Kitestrings
2
- VERSION = "1.0.14"
2
+ VERSION = "1.0.15"
3
3
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitestrings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
- - ridget
7
+ - Tom Ridge
8
8
  - Matt Connolly
9
+ - Geoffrey Donaldson
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2015-02-02 00:00:00.000000000 Z
13
+ date: 2015-02-05 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rails
@@ -99,12 +100,14 @@ description: ''
99
100
  email:
100
101
  - tom.ridge@tworedkites.com
101
102
  - matt.connolly@tworedkites.com
103
+ - geoffrey.donaldson@tworedkites.com
102
104
  executables: []
103
105
  extensions: []
104
106
  extra_rdoc_files: []
105
107
  files:
106
108
  - ".gitignore"
107
109
  - ".rspec"
110
+ - ".ruby-version"
108
111
  - CHANGELOG.md
109
112
  - Gemfile
110
113
  - LICENSE.txt
@@ -193,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
196
  version: '0'
194
197
  requirements: []
195
198
  rubyforge_project:
196
- rubygems_version: 2.4.3
199
+ rubygems_version: 2.2.2
197
200
  signing_key:
198
201
  specification_version: 4
199
202
  summary: For all the 2rk goodness