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
8 changes: 2 additions & 6 deletions Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ guard :minitest, spring: true, all_on_start: false do
watch('app/controllers/account_activations_controller.rb') do
'test/integration/users_signup_test.rb'
end
watch('app/models/micropost.rb') do
['test/models/micropost_test.rb', 'test/models/user_test.rb']
end
watch(%r{app/views/users/*}) do
resource_tests('users') +
['test/integration/microposts_interface_test.rb']
resource_tests('users')
end
end

Expand All @@ -55,4 +51,4 @@ end
# Returns all tests for the given resource.
def resource_tests(resource)
integration_tests(resource) << controller_test(resource)
end
end
13 changes: 1 addition & 12 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20141111014949) do

create_table "microposts", force: :cascade do |t|
t.text "content"
t.integer "user_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "picture"
end

add_index "microposts", ["user_id", "created_at"], name: "index_microposts_on_user_id_and_created_at"
add_index "microposts", ["user_id"], name: "index_microposts_on_user_id"
ActiveRecord::Schema.define(version: 20141107180258) do

create_table "users", force: :cascade do |t|
t.string "name"
Expand Down