Sha256: 52f46ad5247245d3df7216f7d36acd45a560a62de529b1b10fa8d5471e2a6a79

Contents?: true

Size: 740 Bytes

Versions: 82

Compression:

Stored size: 740 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class Muck::FeedPreviewsControllerTest < ActionController::TestCase

  tests Muck::FeedPreviewsController

  context "feed previews controller" do

    context "GET new" do
      setup do
        get :new
      end
      should_not_set_the_flash
      should_respond_with :success
      should_render_template :new
    end

    context "POST to select_feeds" do
      setup do
        post :select_feeds, :feed => { :uri => TEST_URI }
      end          
      should_not_set_the_flash
      should_respond_with :success
      should_render_template :select_feeds
      should "return feeds for the given uri" do
        assert assigns(:feeds).length > 0
      end
    end
    
  end

end

Version data entries

82 entries across 82 versions & 2 rubygems

Version Path
muck-raker-0.1.25 test/rails_root/test/functional/feed_previews_controller_test.rb
muck-raker-0.1.26 test/rails_root/test/functional/feed_previews_controller_test.rb