Sha256: 416d33255b1aa841032925d4bf6b25f1f97df00eb8a89a8333ca2c3be942664a

Contents?: true

Size: 820 Bytes

Versions: 3

Compression:

Stored size: 820 Bytes

Contents

describe User do
  before(:all) do
    @admin = Factory.create(:admin_user)
  end
    
  it "sign in via admin" do
    visit new_user_session_path
    fill_in "user_email", :with => @admin.email
    fill_in "user_password", :with => 'password'
    click_button "user_submit"
  end
    
#  describe "administrator" do
#    
#    describe "GET /manage/users" do
#      it "displays users" do
#        visit manage_users_path
#        page.should have_content(@admin.email)
#      end
#    end
#    
#    describe "POST /manage/users" do
#      it "creates user" do
#        visit new_manage_user_path
#        fill_in "user_name", :with => "Test"
#        click_button "user_submit"
#        page.should have_content("Successfully added task.")
#        page.should have_content("mow lawn")
#      end
#    end
#  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sunrise-core-0.2.2 spec/integration/users_spec.rb
sunrise-core-0.2.1 spec/integration/users_spec.rb
sunrise-core-0.2.0 spec/integration/users_spec.rb