Sha256: b2ebb8d8d16117e259a50dcd81e0310f6ada68c62cdf36da90799da91f093114

Contents?: true

Size: 262 Bytes

Versions: 5

Compression:

Stored size: 262 Bytes

Contents

require "minitest_helper"

module Markitup::Rails
  describe PreviewController do
    describe "POST preview" do
      before { post :preview, data: "foo" }

      it { assert_response :success }
      it { assigns[:content].must_equal "foo" }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
markitup-rails-1.1.3 test/controllers/markitup/rails/preview_controller_test.rb
markitup-rails-1.1.2 test/controllers/markitup/rails/preview_controller_test.rb
markitup-rails-1.1.1 test/controllers/markitup/rails/preview_controller_test.rb
markitup-rails-1.1.0 test/controllers/markitup/rails/preview_controller_test.rb
markitup-rails-1.0.1 test/controllers/markitup/rails/preview_controller_test.rb