Sha256: 2ab8a7c82d2c88729b95e13bbb1e55709e0b4eeced570c06ed8884b2cfa76360
Contents?: true
Size: 896 Bytes
Versions: 9
Compression:
Stored size: 896 Bytes
Contents
require 'spec_helper' class RadioScreen include Mohawk window(:id => nil) radio(:radio_radio, :id => "radioId") end describe Mohawk::Accessors::Radio do let(:screen) { RadioScreen.new } let(:window) { double("RAutomation Window") } let(:radio_control) { double("Elvis Costello's Radio Radio") } before(:each) do RAutomation::Window.stub(:new).and_return(window) window.should_receive(:radio).with(:id => "radioId").and_return(radio_control) end context "working with radio controls" do it "can set the radio control" do radio_control.should_receive(:set) screen.radio_radio end it "knows if the radio is selected" do radio_control.should_receive(:set?) screen.radio_radio? end it "can dish out the raw view" do screen.radio_radio_view.should be(radio_control) end end end
Version data entries
9 entries across 9 versions & 1 rubygems