Sha256: d84cebcf9cdc125d8322d0a13d481d6e582f834fdf630605d18f0a45de45f6b3
Contents?: true
Size: 619 Bytes
Versions: 20
Compression:
Stored size: 619 Bytes
Contents
require 'spec_helper.rb' describe Ability do it {should have_many :ability_permissions} it {should have_many :permissions} describe "that need extent" do before (:each) do @ab_with = Ability.create(:name => "test_with", :needs_extent => true) @ab_without = Ability.create(:name => "test_without", :needs_extent => false) end it "should include with neeD_extent flag" do Ability.that_need_extent.should include(@ab_with) end it "should not include abilities without need_extent flag" do Ability.that_need_extent.should_not include(@ab_without) end end end
Version data entries
20 entries across 20 versions & 1 rubygems