Sha256: 7d9f7c4b23dbeeebe863228e5e9c2deb6685f2e9f8526ddc05228b29316c2e7a

Contents?: true

Size: 411 Bytes

Versions: 4

Compression:

Stored size: 411 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper')

describe "NamedScope" do
  it "chained console_update calls actual named_scope" do
    big_bird = Bird.create({:name=>"big bird"})
    Bird.expects(:system) { |editor, file|
      YAML::load_file(file)[0].keys.sort.should == Bird.default_editable_attributes.sort
    }
    ConsoleUpdate.enable_named_scope
    Bird.just_big_bird.console_update
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
console_update-0.1.6 test/named_scope_test.rb
console_update-0.1.5 test/named_scope_test.rb
console_update-0.1.4 test/named_scope_test.rb
console_update-0.1.3 test/named_scope_test.rb