Sha256: a2167feab79f0879d6351ac39831bae447008a2db914e7805a8451404065adfd
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
require 'spec_helper' describe Shoes::Check do include_context "dsl app" let(:input_opts) { { width: 22, height: 22 } } subject { Shoes::Check.new(app, parent, input_opts, input_block) } it_behaves_like "checkable" it_behaves_like "object with state" it_behaves_like "object with style" do let(:subject_without_style) { Shoes::Check.new(app, parent) } let(:subject_with_style) { Shoes::Check.new(app, parent, arg_styles) } end describe "dimensions" do let(:left) { 10 } let(:top) { 20 } let(:width) { 100 } let(:height) { 200 } let(:input_opts) { {left: left, top: top, width: width, height: height} } subject { Shoes::Check.new(app, parent, input_opts) } it_behaves_like "object with dimensions" describe "takes relative dimensions from parent" do subject { Shoes::Check.new(app, parent, relative_opts) } it_behaves_like "object with relative dimensions" end describe "negative dimensions" do subject { Shoes::Check.new(app, parent, negative_opts) } it_behaves_like "object with negative dimensions" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shoes-core-4.0.0.pre7 | spec/shoes/check_spec.rb |
shoes-core-4.0.0.pre6 | spec/shoes/check_spec.rb |
shoes-core-4.0.0.pre5 | spec/shoes/check_spec.rb |