releasing version 1.3.4
This commit is contained in:
parent
5a353c1cba
commit
04b523eea4
|
@ -1,3 +1,8 @@
|
|||
1.3.4 (August 31, 2010)
|
||||
|
||||
* Don't stop at +cannot+ with hash conditions when checking class (thanks tamoya) - see issue #131
|
||||
|
||||
|
||||
1.3.3 (August 20, 2010)
|
||||
|
||||
* Switching to Rspec namespace to remove deprecation warning in Rspec 2 - see issue #119
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Gem::Specification.new do |s|
|
||||
s.name = "cancan"
|
||||
s.version = "1.3.3"
|
||||
s.version = "1.3.4"
|
||||
s.author = "Ryan Bates"
|
||||
s.email = "ryan@railscasts.com"
|
||||
s.homepage = "http://github.com/ryanb/cancan"
|
||||
|
|
|
@ -249,8 +249,8 @@ describe CanCan::Ability do
|
|||
it "should not stop at cannot definition when comparing class" do
|
||||
@ability.can :read, Array
|
||||
@ability.cannot :read, Array, :first => 1
|
||||
@ability.can?(:read, [2,3,5]).should be_true
|
||||
@ability.can?(:read, [1,3,5]).should be_false
|
||||
@ability.can?(:read, [2, 3, 5]).should be_true
|
||||
@ability.can?(:read, [1, 3, 5]).should be_false
|
||||
@ability.can?(:read, Array).should be_true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user