Files
mapknitter/test/functional/feeds_controller_test.rb
Jeffrey Warren af3552012d Cleanup (#313)
* initial cleanup

* export unit tests, basic

* map tests

* basic comment tests

* cleanup

* export functional tests

* fixes

* Update export.rb

* test fixes and further cleanup

* extra test

* trying again

* another unit test

* output errors?

* Update map_test.rb

* Update maps.yml

* Update tag_test.rb
2019-01-30 09:15:12 -05:00

49 lines
973 B
Ruby

require 'test_helper'
class FeedsControllerTest < ActionController::TestCase
# called before every single test
def setup
@map = maps(:saugus)
@tag = tags(:nice)
end
test "should get main feed (all)" do
get :all
assert_response :success
assert_not_nil :maps
end
test "should get clean feed" do
get :all
assert_response :success
assert_not_nil :maps
end
test "should get clean feed with moderators links" do
get :all, :moderators => 'true'
assert_response :success
assert_not_nil :maps
end
test "should get license feed" do
get :license, :id => "publicdomain"
assert_response :success
assert_not_nil :maps
end
test "should get author feed" do
get :author, :id => "quentin"
assert_response :success
assert_not_nil :maps
end
test "should get tag feed" do
get :tag, :id => "nice"
assert_response :success
assert_not_nil :tag
assert_not_nil :maps
end
end