Sha256: 85b2f098a41cdb53a2816dc60371c88e3632885e4924f65aa9895c35b25a5c13

Contents?: true

Size: 587 Bytes

Versions: 7

Compression:

Stored size: 587 Bytes

Contents

require 'spec_helper'

describe 'checkboxes' do
  Given(:main_screen) { start_app }

  Then { main_screen.checkbox_value == 'checkBox' }
  Then  { main_screen.checkbox_view.class == Mohawk::Adapters::UIA::CheckBox }

  context 'setting' do
    Given(:uncheck) { main_screen.checkbox = false }
    Given(:check) { main_screen.checkbox = true }

    context 'checking' do
      When { check }
      Then { main_screen.checkbox == true }
    end

    context 'un-checking' do
      When { check; uncheck }
      Then { main_screen.checkbox == false }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mohawk-1.0 spec/lib/mohawk/checkbox_spec.rb
mohawk-0.4.4 spec/lib/mohawk/checkbox_spec.rb
mohawk-0.4.3 spec/lib/mohawk/checkbox_spec.rb
mohawk-0.4.2 spec/lib/mohawk/checkbox_spec.rb
mohawk-0.4.1 spec/lib/mohawk/checkbox_spec.rb
mohawk-0.4 spec/lib/mohawk/checkbox_spec.rb
mohawk-0.3 spec/lib/mohawk/checkbox_spec.rb