decent_exposure 1.0.0.rc2 → 1.0.0.rc3
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/VERSION +1 -1
- data/rails/init.rb +1 -2
- data/spec/lib/decent_exposure_spec.rb +1 -1
- data/spec/lib/rails_integration_spec.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.rc3
|
data/rails/init.rb
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
DecentExposure::Railtie.insert
|
1
|
+
Kernel.load File.join(File.dirname(__FILE__), '..', 'init.rb')
|
@@ -20,7 +20,7 @@ describe DecentExposure do
|
|
20
20
|
let(:instance) { controller.new }
|
21
21
|
|
22
22
|
it 'creates a method with the given name' do
|
23
|
-
instance.
|
23
|
+
instance.should respond_to(:resource)
|
24
24
|
end
|
25
25
|
|
26
26
|
it 'prevents the method from being a callable action' do
|
@@ -148,8 +148,8 @@ describe "Rails' integration:", DecentExposure do
|
|
148
148
|
context 'when collection name is same as resource name' do
|
149
149
|
it 'does not create a collection method' do
|
150
150
|
instance.equipment
|
151
|
-
instance.
|
152
|
-
instance.
|
151
|
+
instance.should respond_to(:equipment)
|
152
|
+
instance.should_not respond_to(:equipments)
|
153
153
|
end
|
154
154
|
end
|
155
155
|
end
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 1
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.0.
|
9
|
+
- rc3
|
10
|
+
version: 1.0.0.rc3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Stephen Caudill
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-12-
|
19
|
+
date: 2010-12-21 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|