remarkable_rails 3.0.4 → 3.0.5
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.
data/README
CHANGED
@@ -65,7 +65,7 @@ An equivalent in remarkable would be:
|
|
65
65
|
mock_models :task
|
66
66
|
|
67
67
|
describe :post => :create, :task => { :these => 'params' } do
|
68
|
-
expects :new, :on => Task, with => {'these' => 'params'}, :returns => mock_task
|
68
|
+
expects :new, :on => Task, :with => {'these' => 'params'}, :returns => mock_task
|
69
69
|
expects :save, :on => mock_task, :returns => true
|
70
70
|
|
71
71
|
should_assign_to :task, :with => mock_task
|
@@ -48,40 +48,58 @@ describe 'set_the_flash' do
|
|
48
48
|
before(:each) { build_response { flash[:notice] = 'jose' } }
|
49
49
|
|
50
50
|
it { should set_the_flash }
|
51
|
-
it { should set_the_flash.to('jose') }
|
51
|
+
it { should set_the_flash.to('jose') }
|
52
|
+
it { should set_the_flash.to(/jose/) }
|
52
53
|
it { should set_the_flash(:notice) }
|
53
|
-
it { should set_the_flash(:notice).to('jose') }
|
54
|
+
it { should set_the_flash(:notice).to('jose') }
|
55
|
+
it { should set_the_flash(:notice).to(/jose/) }
|
54
56
|
|
55
|
-
it { should_not set_the_flash.to('joseph') }
|
57
|
+
it { should_not set_the_flash.to('joseph') }
|
58
|
+
it { should_not set_the_flash.to(/joseph/) }
|
56
59
|
it { should_not set_the_flash(:error) }
|
57
|
-
it { should_not set_the_flash(:notice).to('joseph') }
|
58
|
-
|
59
|
-
|
60
|
-
it { should set_the_flash
|
60
|
+
it { should_not set_the_flash(:notice).to('joseph') }
|
61
|
+
it { should_not set_the_flash(:notice).to(/joseph/) }
|
62
|
+
|
63
|
+
it { should set_the_flash{ 'jose' } }
|
64
|
+
it { should set_the_flash{ /jose/ } }
|
65
|
+
it { should set_the_flash(:notice){ 'jose' } }
|
66
|
+
it { should set_the_flash(:notice){ /jose/ } }
|
67
|
+
it { should set_the_flash(:notice, :to => proc{ 'jose' }) }
|
68
|
+
it { should set_the_flash(:notice, :to => proc{ /jose/ }) }
|
61
69
|
|
62
70
|
it { should_not set_the_flash(:notice).to(nil) }
|
63
|
-
it { should_not set_the_flash(:notice){ 'joseph' } }
|
64
|
-
it { should_not set_the_flash(:notice
|
71
|
+
it { should_not set_the_flash(:notice){ 'joseph' } }
|
72
|
+
it { should_not set_the_flash(:notice){ /joseph/ } }
|
73
|
+
it { should_not set_the_flash(:notice, :to => proc{ 'joseph' }) }
|
74
|
+
it { should_not set_the_flash(:notice, :to => proc{ /joseph/ }) }
|
65
75
|
end
|
66
76
|
|
67
77
|
describe 'macro' do
|
68
78
|
before(:each) { build_response { flash[:notice] = 'jose' } }
|
69
79
|
|
70
80
|
should_set_the_flash
|
71
|
-
should_set_the_flash :to => 'jose'
|
81
|
+
should_set_the_flash :to => 'jose'
|
82
|
+
should_set_the_flash :to => /jose/
|
72
83
|
should_set_the_flash :notice
|
73
|
-
should_set_the_flash :notice, :to => 'jose'
|
84
|
+
should_set_the_flash :notice, :to => 'jose'
|
85
|
+
should_set_the_flash :notice, :to => /jose/
|
74
86
|
|
75
|
-
should_not_set_the_flash :to => 'joseph'
|
87
|
+
should_not_set_the_flash :to => 'joseph'
|
88
|
+
should_not_set_the_flash :to => /joseph/
|
76
89
|
should_not_set_the_flash :error
|
77
|
-
should_not_set_the_flash :notice, :to => 'joseph'
|
90
|
+
should_not_set_the_flash :notice, :to => 'joseph'
|
91
|
+
should_not_set_the_flash :notice, :to => /joseph/
|
78
92
|
|
79
|
-
should_set_the_flash(:notice){ 'jose' }
|
80
|
-
should_set_the_flash
|
93
|
+
should_set_the_flash(:notice){ 'jose' }
|
94
|
+
should_set_the_flash(:notice){ /jose/ }
|
95
|
+
should_set_the_flash :notice, :to => proc{ 'jose' }
|
96
|
+
should_set_the_flash :notice, :to => proc{ /jose/ }
|
81
97
|
|
82
98
|
should_not_set_the_flash :notice, :to => nil
|
83
|
-
should_not_set_the_flash(:notice){ 'joseph' }
|
84
|
-
should_not_set_the_flash
|
99
|
+
should_not_set_the_flash(:notice){ 'joseph' }
|
100
|
+
should_not_set_the_flash(:notice){ /joseph/ }
|
101
|
+
should_not_set_the_flash :notice, :to => proc{ 'joseph' }
|
102
|
+
should_not_set_the_flash :notice, :to => proc{ /joseph/ }
|
85
103
|
end
|
86
104
|
|
87
105
|
describe 'with no parameter' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remarkable_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Brando
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-04-
|
13
|
+
date: 2009-04-20 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 3.0.
|
34
|
+
version: 3.0.5
|
35
35
|
version:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: remarkable_activerecord
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
requirements:
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 3.0.
|
44
|
+
version: 3.0.5
|
45
45
|
version:
|
46
46
|
description: "Remarkable Rails: collection of matchers and macros with I18n for Rails"
|
47
47
|
email:
|