diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/controllers/report_controller_test.rb | 24 | ||||
-rw-r--r-- | test/fixtures/issues.yml | 9 | ||||
-rw-r--r-- | test/fixtures/stolen_tweets.yml | 9 | ||||
-rw-r--r-- | test/helpers/report_helper_test.rb | 4 | ||||
-rw-r--r-- | test/models/issue_test.rb | 7 | ||||
-rw-r--r-- | test/models/stolen_tweet_test.rb | 7 |
6 files changed, 60 insertions, 0 deletions
diff --git a/test/controllers/report_controller_test.rb b/test/controllers/report_controller_test.rb new file mode 100644 index 0000000..1949a88 --- /dev/null +++ b/test/controllers/report_controller_test.rb @@ -0,0 +1,24 @@ +require 'test_helper' + +class ReportControllerTest < ActionController::TestCase + test "should get index" do + get :index + assert_response :success + end + + test "should get tweet" do + get :tweet + assert_response :success + end + + test "should get spam" do + get :spam + assert_response :success + end + + test "should get issue" do + get :issue + assert_response :success + end + +end diff --git a/test/fixtures/issues.yml b/test/fixtures/issues.yml new file mode 100644 index 0000000..1f5849b --- /dev/null +++ b/test/fixtures/issues.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html + +one: + type: 1 + data: MyText + +two: + type: 1 + data: MyText diff --git a/test/fixtures/stolen_tweets.yml b/test/fixtures/stolen_tweets.yml new file mode 100644 index 0000000..9196fe8 --- /dev/null +++ b/test/fixtures/stolen_tweets.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html + +one: + tweet_id: 1 + original_id: 1 + +two: + tweet_id: 1 + original_id: 1 diff --git a/test/helpers/report_helper_test.rb b/test/helpers/report_helper_test.rb new file mode 100644 index 0000000..b37320b --- /dev/null +++ b/test/helpers/report_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class ReportHelperTest < ActionView::TestCase +end diff --git a/test/models/issue_test.rb b/test/models/issue_test.rb new file mode 100644 index 0000000..c3887b8 --- /dev/null +++ b/test/models/issue_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class IssueTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/stolen_tweet_test.rb b/test/models/stolen_tweet_test.rb new file mode 100644 index 0000000..b20db96 --- /dev/null +++ b/test/models/stolen_tweet_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class StolenTweetTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end |