Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions features/home_page.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Feature: Home Page
Scenario: Logged-in user should see all microposts feed
Scenario: Logged-in user can post micropost
Scenario: Logged-in user can delete owned microposts
Scenario: Logged-in user can click to following list page
2 changes: 2 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# files.

require 'cucumber/rails'
require 'webdrivers'

# frozen_string_literal: true

Expand Down Expand Up @@ -58,3 +59,4 @@
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
Cucumber::Rails::Database.javascript_strategy = :truncation

Capybara.javascript_driver = :selenium_chrome
1 change: 1 addition & 0 deletions features/users.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Feature: Users
Background:
Given I am logged in as an activated user

# @javascript
Scenario: Users List
When I go to the list of users
Then I should see "Users"
Expand Down
12 changes: 12 additions & 0 deletions spec/models/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,16 @@
expect(user.save).to be false
end
end

# TODO: Add tests for associations

# TODO: Add tests for validations

describe '#send_password_reset_email' do
# TODO
end

describe '#feed' do
# TODO
en
end
16 changes: 16 additions & 0 deletions spec/requests/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,20 @@
end
end
end

descibe '#show' do
# TODO
end

descirbe '#create' do
# TODO
end

describe '#destroy' do
# TODO
end

describe '#following' do
# TODO
end
end