Sha256: 18e9bb146df0d5d527cedbe41b2483e6230f55f1198d1300aea19472e091293b

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

class Context
  include CanTango::Api::Options
  
  def session
    {}
  end
end

describe CanTango::Api::Options do
  subject { Context.new }

  describe 'ability_options' do
    specify do 
      subject.ability_options[:session].should == {}
    end
  end

  describe 'options_list' do  
    specify { subject.options_list.should == [:session, :request, :params, :controller, :domain, :cookies] }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cantango-api-0.1.3 spec/cantango/api/options_spec.rb
cantango-api-0.1.2 spec/cantango/api/options_spec.rb
cantango-api-0.1.1 spec/cantango/api/options_spec.rb
cantango-api-0.1.0 spec/cantango/api/options_spec.rb