Sha256: 993e2de4463ef252231cd7a2f2f6789788b8670772c06fcbd086298750aa6f80

Contents?: true

Size: 648 Bytes

Versions: 18

Compression:

Stored size: 648 Bytes

Contents

# frozen_string_literal: true

require "assert"
require "much-rails/action/redirect_to_result"

class MuchRails::Action::RedirectToResult
  class UnitTests < Assert::Context
    desc "MuchRails::Action::RedirectToResult"
    subject{ unit_class }

    let(:unit_class){ MuchRails::Action::RedirectToResult }
  end

  class InitTests < UnitTests
    desc "when init"
    subject{ unit_class.new("URL") }

    should "know its attributes" do
      assert_that(subject.command_name).equals(:redirect_to)
      assert_that(subject.command_args).equals(["URL"])
      assert_that(subject.redirect_to_args).equals(subject.command_args)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
much-rails-0.4.3 test/unit/action/redirect_to_result_tests.rb
much-rails-0.4.2 test/unit/action/redirect_to_result_tests.rb
much-rails-0.4.1 test/unit/action/redirect_to_result_tests.rb
much-rails-0.4.0 test/unit/action/redirect_to_result_tests.rb
much-rails-0.3.0 test/unit/action/redirect_to_result_tests.rb
much-rails-0.2.8 test/unit/action/redirect_to_result_tests.rb
much-rails-0.2.7 test/unit/action/redirect_to_result_tests.rb
much-rails-0.2.6 test/unit/action/redirect_to_result_tests.rb
much-rails-0.2.5 test/unit/action/redirect_to_result_tests.rb
much-rails-0.2.4 test/unit/action/redirect_to_result_tests.rb
much-rails-0.2.3 test/unit/action/redirect_to_result_tests.rb
much-rails-0.2.2 test/unit/action/redirect_to_result_tests.rb
much-rails-0.2.1 test/unit/action/redirect_to_result_tests.rb
much-rails-0.2.0 test/unit/action/redirect_to_result_tests.rb
much-rails-0.1.3 test/unit/action/redirect_to_result_tests.rb
much-rails-0.1.2 test/unit/action/redirect_to_result_tests.rb
much-rails-0.1.1 test/unit/action/redirect_to_result_tests.rb
much-rails-0.1.0 test/unit/action/redirect_to_result_tests.rb