Sha256: cd459b4f2e13dd55ec743473d65cd6328f02dff4d0af5d904c1d37a1a95538c4

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

require "minitest_helper"

describe "Adspace integration" do
  before do
    User.destroy_all
    RailsAdserver::Adspace.destroy_all
    RailsAdserver::Advertisement.destroy_all
    @user = FactoryGirl.create(:user)
  end
  it "Creates an Adspace" do
    login_as(@user, :scope => :user)
    visit '/rails_adserver/'
    click_link 'Ad-Spaces'
    click_link "New Adspace"
    fill_in 'adspace_name', :with => "Foo Bar"
    click_button "Submit"
    page.text.must_include "Foo Bar"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_adserver-1.0.2 test/integration/adspaces_test.rb