Sha256: 2f830b07d55273dc00c4bc71ec017c48725589035de9bbdede4fface9aa4491d

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 Bytes

Contents

describe "PM::FormotionScreen" do

  before do
    @screen = TestFormotionScreen.new
  end

  it "should store title" do
    TestFormotionScreen.get_title.should == 'Formotion Test'
    @screen.class.get_title.should == "Formotion Test"
  end

  it "should set default title on new instances" do
    @screen.title.should == "Formotion Test"
  end

  it "should fire the on_submit method when form is submitted" do
    @screen.form.submit
    @screen.submitted_form.should.not.be.nil
    @screen.submitted_form.render.should.be.kind_of(Hash)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ProMotion-1.1.1 spec/unit/tables/formotion_screen_spec.rb
ProMotion-1.1.0 spec/unit/tables/formotion_screen_spec.rb
ProMotion-1.1.0.rc1 spec/unit/tables/formotion_screen_spec.rb