# require "spec_helper" # feature "User signup" do # let!(:account) { FactoryGirl.create(:account) } # let(:root_url) { "http://#{account.subdomain}.example.com/" } # before do # end # scenario "under an account" do # visit root_url # click_link "New User?" # fill_in "Email", :with => "user@example.com" # fill_in "Password", :with => "password" # fill_in "Password confirmation", :with => "password" # click_button "Sign up" # page.should have_content("You have signed up successfully.") # page.current_url.should == root_url # end # end