specstar-controllers 0.0.3 → 0.0.4
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/lib/specstar/controllers.rb +9 -1
- metadata +2 -2
data/lib/specstar/controllers.rb
CHANGED
@@ -5,8 +5,16 @@ module Specstar
|
|
5
5
|
module Matchers
|
6
6
|
RSpec::Matchers.define :have_layout do |expected|
|
7
7
|
match do |controller|
|
8
|
-
expected == controller.class.instance_variable_get("@_layout")
|
8
|
+
expected.to_s == controller.class.instance_variable_get("@_layout")
|
9
9
|
end
|
10
|
+
|
11
|
+
failure_message_for_should do |controller|
|
12
|
+
"Expected #{controller.class.name} to have layout '#{expected}'."
|
13
|
+
end
|
14
|
+
|
15
|
+
failure_message_for_should_not do |controller|
|
16
|
+
"Expected #{controller.class.name} not to have layout '#{expected}'."
|
17
|
+
end
|
10
18
|
end
|
11
19
|
|
12
20
|
def has_skip_before_filter?(controller, filter, actions)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specstar-controllers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-26 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: sujoyg@gmail.com
|