Sha256: 06340d55690a3dcdafaf2370cfdf26686555c625d6d175aec0f4a9758d584bed

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

require 'spec_helper'
require 'taketo/actions'

include Taketo

describe "Actions" do
  describe ".action_by_name" do
    it "returns class by name" do
      Actions[:matches].should == Actions::Matches
    end

    it "returns LoginAction if action was not found" do
      Actions[:never_existed_here].should == Actions::Login
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
taketo-0.2.0 spec/lib/taketo/actions_spec.rb
taketo-0.2.0.alpha spec/lib/taketo/actions_spec.rb