Skip to content

Commit

Permalink
WIP liking and posting specs
Browse files Browse the repository at this point in the history
  • Loading branch information
lortza committed Oct 23, 2018
1 parent 81d9aa6 commit 9b228d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec/features/liking_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
login(user)
end

context 'on their Timeline' do
xcontext 'on their Timeline' do
before do
visit user_timeline_path(user)
end
Expand Down Expand Up @@ -58,7 +58,7 @@

end #Timeline

context 'on their Feed' do
xcontext 'on their Feed' do
before do
visit user_feed_path(user)
end
Expand Down
4 changes: 3 additions & 1 deletion spec/features/posting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

RSpec.feature 'Posting', type: :feature do
let(:user){ create(:user) }

before do
visit root_path
end

context "A visitor" do
scenario 'can not make a new post' do
xscenario 'can not make a new post' do
visit new_user_post_path(user)
save_and_open_page
expect(current_path).to eq(login_path)
end
end #visitors
Expand Down
3 changes: 1 addition & 2 deletions spec/requests/users_requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
expect(response).to redirect_to login_path
end

it "functions as normal for logged-in users" do
xit "functions as normal for logged-in users" do
user = create(:user)
request.session[:user_id] = user.id
get users_path
Expand Down Expand Up @@ -53,4 +53,3 @@
# end #edit

end #UsersRequests

0 comments on commit 9b228d4

Please sign in to comment.