Sha256: 4eb9c529b5b2a73d8a1d6c2de09b4fb8a1bd3b59f85bb61d52b920ce1c59f1d8
Contents?: true
Size: 710 Bytes
Versions: 7
Compression:
Stored size: 710 Bytes
Contents
require 'spec_helper' describe 'spinners' do Given(:screen) do start_app on(Class.new do include Mohawk window(title: /MainForm/) spinner(:spinner, id: 'numericUpDown1') end) end Then { screen.spinner_view.class == Mohawk::Adapters::UIA::Spinner } context '#spinner=' do When { screen.spinner = 50.8 } Then { screen.spinner == 50.8 } end context '#increment_spinner' do When { 5.times { screen.increment_spinner} } Then { screen.spinner == 5.0 } end context '#decrement_spinner' do Given { screen.spinner = 10.0 } When { 3.times { screen.decrement_spinner } } Then { screen.spinner == 7.0 } end end
Version data entries
7 entries across 7 versions & 1 rubygems