Commit fbf412eaa0ee68812cdbab9e96f194e03fedd334
1 parent
53ce00f7
Exists in
master
and in
4 other branches
fix dashboard spec
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
spec/requests/dashboard_spec.rb
| 1 | require 'spec_helper' | 1 | require 'spec_helper' |
| 2 | 2 | ||
| 3 | describe "Dashboard" do | 3 | describe "Dashboard" do |
| 4 | - before { login_as :user } | 4 | + before do |
| 5 | + @project = Factory :project | ||
| 6 | + login_as :user | ||
| 7 | + end | ||
| 5 | 8 | ||
| 6 | describe "GET /dashboard" do | 9 | describe "GET /dashboard" do |
| 7 | before do | 10 | before do |
| 8 | - @project = Factory :project | ||
| 9 | @project.add_access(@user, :read, :write) | 11 | @project.add_access(@user, :read, :write) |
| 10 | visit dashboard_path | 12 | visit dashboard_path |
| 11 | end | 13 | end |