Sha256: f69bb4b4431b87ef4fed1f086854862e995c75de2d6aea2cf602d5635535227c
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
describe "Walt::Operation::FadeOperation" do before do @view = UIView.alloc.initWithFrame([[100,100], [50,50]]) end describe "#setup" do describe "with :from" do it "should work" do op = Walt::Operation.for(type: :fade, id: :herp, from: 0.3) op.setup(@view, nil) @view.alpha.should == 0.3 end end end describe "#finalize" do describe "with :to" do it "should work" do op = Walt::Operation.for(type: :fade, id: :herp, to: 0.8) op.finalize(@view, nil) @view.alpha.should == 0.8 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
walt-0.1.2 | spec/operation/fade_spec.rb |
walt-0.1 | spec/operation/fade_spec.rb |