27. describe "Application 'MyFirst'" do
before do
@app = UIApplication.sharedApplication
end
まずこいつ
it "has one window" do
@app.windows.size.should == 1
end
end
36. describe "Timer Main Window" do
tests MyFirstViewController
it "has one pickerview" do
views(UIPickerView).size.should == 1
end
it "has Label" do
views(UILabel).size.should >= 1
view("Count Down Label").text.should == "Set the Time"
end
it "has one button" do
views(UIButton).size.should == 1
end
it "can be time up" do
tap("Start Button")
view("Count Down Label").text.should == "Time Up"
end
end