spec/ios/pipes_spec.rb in sugarcube-2.4.2 vs spec/ios/pipes_spec.rb in sugarcube-2.5.0
- old
+ new
@@ -31,13 +31,15 @@
it "should coerce into NSData" do
(@image | NSData).should.be.kind_of(NSData)
end
- # it "should not support arbitrary coercions" do
- # should.raise { (@image | ArbitraryCoercion) }
- # end
+ it "should not support arbitrary coercions" do
+ ->{
+ (@image | ArbitraryCoercion)
+ }.should.raise
+ end
it "should apply CIFilter" do
filter = CIFilter.gaussian_blur
(@image | filter).should.be.kind_of(CIImage)
end
@@ -57,13 +59,15 @@
it "should coerce into UIImage" do
(@view | UIImage).should.be.kind_of(UIImage)
end
- # it "should not support arbitrary coercions" do
- # should.raise { (@view | ArbitraryCoercion) }
- # end
+ it "should not support arbitrary coercions" do
+ ->{
+ (@view | ArbitraryCoercion)
+ }.should.raise
+ end
end
describe "CIImage" do
before do
@@ -84,13 +88,15 @@
it "should coerce into CIImage" do
(@image | CIImage).should.be.kind_of(CIImage)
end
- # it "should not support arbitrary coercions" do
- # should.raise { (@image | ArbitraryCoercion) }
- # end
+ it "should not support arbitrary coercions" do
+ ->{
+ (@image | ArbitraryCoercion)
+ }.should.raise
+ end
it "should apply CIFilter" do
filter = CIFilter.gaussian_blur
(@image | filter).should.be.kind_of(CIImage)
end
@@ -116,12 +122,14 @@
it "should filter String" do
("My name is Mud" | "Mud").should == "Mud"
("My name is Mud" | "Bob").should == nil
end
- # it "should not support arbitrary coercions" do
- # should.raise { (@string | ArbitraryCoercion) }
- # end
+ it "should not support arbitrary coercions" do
+ ->{
+ (@string | ArbitraryCoercion)
+ }.should.raise
+ end
end
end