proposal 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/proposal/token.rb +9 -5
- data/db/migrate/20121026005348_create_proposal_tokens.rb +10 -10
- data/lib/proposal/version.rb +1 -1
- data/test/dummy/config/application.rb +1 -0
- data/test/dummy/db/schema.rb +44 -0
- data/test/dummy/log/test.log +3244 -0
- data/test/proposal_test.rb +3 -3
- metadata +4 -2
data/test/proposal_test.rb
CHANGED
@@ -142,7 +142,7 @@ class ProposalTest < ActiveSupport::TestCase
|
|
142
142
|
test "should validate arguments with a proc" do
|
143
143
|
error_messages = ["is invalid"]
|
144
144
|
errors = { arguments: error_messages }
|
145
|
-
proposal = User.propose.to email, expects: ->
|
145
|
+
proposal = User.propose.to email, expects: ->arguments {
|
146
146
|
!arguments.nil? && !arguments.empty?
|
147
147
|
}
|
148
148
|
|
@@ -159,7 +159,7 @@ class ProposalTest < ActiveSupport::TestCase
|
|
159
159
|
|
160
160
|
test "should not return proposal instance" do
|
161
161
|
proposal = User.propose.to email
|
162
|
-
|
162
|
+
assert_nil proposal.recipient
|
163
163
|
assert_raises(Proposal::RecordNotFound) { proposal.recipient! }
|
164
164
|
end
|
165
165
|
|
@@ -206,7 +206,7 @@ class ProposalTest < ActiveSupport::TestCase
|
|
206
206
|
proposal.save!
|
207
207
|
proposal.accept!
|
208
208
|
|
209
|
-
|
209
|
+
assert_nil proposal.action
|
210
210
|
end
|
211
211
|
|
212
212
|
test "should raise error if remind is not true" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proposal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rufus Post
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- test/dummy/db/migrate/20121026035505_create_users.rb
|
92
92
|
- test/dummy/db/migrate/20121031041439_create_projects.rb
|
93
93
|
- test/dummy/db/proposal.sqlite3
|
94
|
+
- test/dummy/db/schema.rb
|
94
95
|
- test/dummy/log/development.log
|
95
96
|
- test/dummy/log/test.log
|
96
97
|
- test/dummy/script/rails
|
@@ -140,6 +141,7 @@ test_files:
|
|
140
141
|
- test/dummy/config.ru
|
141
142
|
- test/dummy/script/rails
|
142
143
|
- test/dummy/Rakefile
|
144
|
+
- test/dummy/db/schema.rb
|
143
145
|
- test/dummy/db/proposal.sqlite3
|
144
146
|
- test/dummy/db/migrate/20121026035505_create_users.rb
|
145
147
|
- test/dummy/db/migrate/20121031041439_create_projects.rb
|