rddd 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rddd (0.1.0)
4
+ rddd (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -6,7 +6,7 @@ module Rddd
6
6
  class AggregateRoot < Entity
7
7
  extend AggregateRootFinders
8
8
 
9
- finder :find_by_id
9
+ finder :find
10
10
 
11
11
  [:create, :update, :delete].each do |action|
12
12
  define_method action do
data/lib/rddd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rddd
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -10,14 +10,14 @@ describe Rddd::AggregateRoot do
10
10
  aggregate_root.should be_kind_of Rddd::Entity
11
11
  end
12
12
 
13
- describe '#find_by_id' do
14
- subject { Rddd::AggregateRoot.find_by_id(id) }
13
+ describe '#find' do
14
+ subject { Rddd::AggregateRoot.find(id) }
15
15
 
16
16
  let(:repository) { stub('repository') }
17
17
 
18
18
  before {
19
19
  Rddd::RepositoryFactory.expects(:build).returns(repository)
20
- repository.expects(:find_by_id).with(id)
20
+ repository.expects(:find).with(id)
21
21
  }
22
22
 
23
23
  it { subject }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rddd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: