specstar-controllers 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/specstar/controllers.rb +9 -1
  2. metadata +2 -2
@@ -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.3
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-16 00:00:00.000000000 Z
12
+ date: 2012-10-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: sujoyg@gmail.com