Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require File.join(File.dirname(__FILE__), "helper")
- Story "View Home Page", %{
- As a user
- I want to view my home page
- So that I can get a birds eye view of the system
- }, :type => RailsStory do
- Scenario "Publisher with no videos" do
- Given "a company" do
- @company = Company.create! :name => "No videos"
- end
- And "a publisher belonging to that company" do
- @user = User.create! :login => "novideos", :password => "test", :password_confirmation => "test",
- :email => "novideos@twistage.com", :company => @company
- @user.activate
- end
- And "logged in as that user" do
- post "/sessions", :login => "novideos", :password => "test"
- end
- When "visiting /" do
- get_via_redirect "/"
- end
- Then "viewer should see", "companies/show_initial" do |template|
- response.should render_template(template)
- end
- end
- end
Add Comment
Please, Sign In to add comment