Skip to content

Commit

Permalink
Move tests to spec folder
Browse files Browse the repository at this point in the history
  • Loading branch information
cutalion committed Feb 27, 2013
1 parent a9238fd commit 053c0ae
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 43 deletions.
13 changes: 13 additions & 0 deletions spec/models/message_spec.rb
@@ -1,4 +1,17 @@
require 'spec_helper'

describe Message do
it "should validate presence of user id" do
message = Message.new
message.valid? # => false
message.errors[:user_id]
message.errors[:user_id].should include "can't be blank"
end

it "should validate presence of text" do
message = Message.new
message.valid? # => false
message.errors[:text]
message.errors[:text].should include "can't be blank"
end
end
Empty file removed test/fixtures/.gitkeep
Empty file.
Empty file removed test/functional/.gitkeep
Empty file.
Empty file removed test/integration/.gitkeep
Empty file.
12 changes: 0 additions & 12 deletions test/performance/browsing_test.rb

This file was deleted.

13 changes: 0 additions & 13 deletions test/test_helper.rb

This file was deleted.

Empty file removed test/unit/.gitkeep
Empty file.
18 changes: 0 additions & 18 deletions test/unit/message_test.rb

This file was deleted.

0 comments on commit 053c0ae

Please sign in to comment.