Sha256: 3e2e581922134c5b8d55ebb5dfb928738297a21bb302f23977d6bcb5b5d199a4
Contents?: true
Size: 855 Bytes
Versions: 5
Compression:
Stored size: 855 Bytes
Contents
require 'spec_helper' include SpecHelpers describe 'Plans' do describe "GET /admin/plans" do it "should display plans" do Factory.create(:plan, :name => "Gold") visit admin_plans_path page.should have_content("Gold") end end describe "POST /admin/plans", :js => "true" do it "should create new plan" do javascript do visit new_admin_plan_path fill_in "plan_name", :with => "Silver" fill_in "Price", :with => "12.99" fill_in "attribute_name", :with => "Testing123" click_link "Add attribute" page.should have_content("Testing123") fill_in 'field_Testing123', :with => 'test' click_button "Create" page.should have_content("Plan was successfully created.") page.should have_content("Silver") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems