Acheter une action

require 'spec_helper'

feature 'Acheter une action' do

  $a_nbaction = a_integer()

  background do
    visit '/id?=societe'
    fill_in 'NombreAction', :with => $a_nbaction
    click_on 'Acheter' 
    page.should have_content 'actions achetées'
    page.should_not have_content $a_nbaction  
  end

end