Sha256: 2f43b62048a21c7496b7e73b6782dd3e3c9eb413ad4223f5fa9203d8010878fc

Contents?: true

Size: 364 Bytes

Versions: 35

Compression:

Stored size: 364 Bytes

Contents

describe "UISwitch test" do
  describe "it should style `on`" do
    before do
      @ctlr = UIViewController.new
    end

    it "should be on" do
      switch = @ctlr.subview(UISwitch, on: true)
      switch.on?.should == true
    end
    it "should be off" do
      switch = @ctlr.subview(UISwitch, on: false)
      switch.on?.should == false
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
teacup-3.0.1 spec/ios/uiswitch_spec.rb
teacup-3.0.0 spec/ios/uiswitch_spec.rb
teacup-2.3.0 spec/ios/uiswitch_spec.rb
teacup-2.2.2 spec/ios/uiswitch_spec.rb
teacup-2.2.0 spec/ios/uiswitch_spec.rb
teacup-2.1.16 spec/ios/uiswitch_spec.rb
teacup-2.1.15 spec/ios/uiswitch_spec.rb
teacup-2.1.14 spec/ios/uiswitch_spec.rb
teacup-2.1.13 spec/ios/uiswitch_spec.rb
teacup-2.1.12 spec/ios/uiswitch_spec.rb
teacup-2.1.11 spec/ios/uiswitch_spec.rb
teacup-2.1.10 spec/ios/uiswitch_spec.rb
teacup-2.1.9 spec/ios/uiswitch_spec.rb
teacup-2.1.8 spec/ios/uiswitch_spec.rb
teacup-2.1.7 spec/ios/uiswitch_spec.rb
teacup-2.1.6 spec/ios/uiswitch_spec.rb
teacup-2.1.5 spec/ios/uiswitch_spec.rb
teacup-2.1.4 spec/ios/uiswitch_spec.rb
teacup-2.1.3 spec/ios/uiswitch_spec.rb
teacup-2.1.2 spec/ios/uiswitch_spec.rb