Updated Branches: refs/heads/blur-console-v2 [created] c6e64403a
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console/blur-admin/vendor/gems/cancan/spec/cancan/matchers_spec.rb ---------------------------------------------------------------------- diff --git a/contrib/blur-console/blur-admin/vendor/gems/cancan/spec/cancan/matchers_spec.rb b/contrib/blur-console/blur-admin/vendor/gems/cancan/spec/cancan/matchers_spec.rb deleted file mode 100755 index 9e4eefe..0000000 --- a/contrib/blur-console/blur-admin/vendor/gems/cancan/spec/cancan/matchers_spec.rb +++ /dev/null @@ -1,33 +0,0 @@ -require "spec_helper" - -describe "be_able_to" do - it "delegates to can?" do - object = Object.new - object.should_receive(:can?).with(:read, 123) { true } - object.should be_able_to(:read, 123) - end - - it "reports a nice failure message for should" do - object = Object.new - object.should_receive(:can?).with(:read, 123) { false } - expect do - object.should be_able_to(:read, 123) - end.should raise_error('expected to be able to :read 123') - end - - it "reports a nice failure message for should not" do - object = Object.new - object.should_receive(:can?).with(:read, 123) { true } - expect do - object.should_not be_able_to(:read, 123) - end.should raise_error('expected not to be able to :read 123') - end - - it "delegates additional arguments to can? and reports in failure message" do - object = Object.new - object.should_receive(:can?).with(:read, 123, 456) { false } - expect do - object.should be_able_to(:read, 123, 456) - end.should raise_error('expected to be able to :read 123 456') - end -end
