model_base_generators 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b699cb53644860bfcf7b663b76ff234477311ea9
4
- data.tar.gz: 10afb774b6eacb3704bfdbe3c46f522f1ec23e17
3
+ metadata.gz: 4ef9b0bf63325b8a5d6411fd71f7447782b77af7
4
+ data.tar.gz: 2d56094f22d871373bd93150adb62d0a76e77e74
5
5
  SHA512:
6
- metadata.gz: 65d880b9527c27cd54de406409522077a4b65feb27c7bf4212b94c123d274a86d2161eabbcd9c5f568d4a96cfbcbb7d5d29306b25f9b77218d23ea298a98507d
7
- data.tar.gz: 4c29670bc96f3e895a4cc7a7b5c1debe1008be6e1245e8e8d79d7eb3741369921798bdbd5ba94ad3ea89ba22aad8f1001235e47770eba63722be82493b131013
6
+ metadata.gz: c4bcaa5d746da7fa7249401e36c37f09603806f4cd564349f5909d7ccbdcd64d0d2e72221efe461b5377df07807d6d6c1b1662ae0272e582d01774a03f09b7de
7
+ data.tar.gz: 5c2b9a07d36663908b3219ed7be0cd6f1cfbc6273ff5030b901a0be039a5568d37932cd2d51cd635f7ed0e591050abe2e754760398650361b8ac668695cc3972
@@ -20,8 +20,8 @@ require 'rails_helper'
20
20
 
21
21
  RSpec.describe IssuesController, type: :controller do
22
22
 
23
- let(:project){ FactoryGirl.create(:project, owner: user) }
24
23
  let(:user){ FactoryGirl.create(:user) }
24
+ let(:project){ FactoryGirl.create(:project, owner: user) }
25
25
  before{ devise_user_login(user) }
26
26
 
27
27
  let(:issue){ FactoryGirl.create(:issue, project: project, creator: user) }
@@ -20,8 +20,8 @@ require 'rails_helper'
20
20
 
21
21
  RSpec.describe PhasesController, type: :controller do
22
22
 
23
- let(:project){ FactoryGirl.create(:project, owner: user) }
24
23
  let(:user){ FactoryGirl.create(:user) }
24
+ let(:project){ FactoryGirl.create(:project, owner: user) }
25
25
  before{ devise_user_login(user) }
26
26
 
27
27
  let(:phase){ FactoryGirl.create(:phase, project: project) }
@@ -20,8 +20,8 @@ require 'rails_helper'
20
20
 
21
21
  RSpec.describe ProjectAssignmentsController, type: :controller do
22
22
 
23
- let(:project){ FactoryGirl.create(:project, owner: user) }
24
23
  let(:user){ FactoryGirl.create(:user) }
24
+ let(:project){ FactoryGirl.create(:project, owner: user) }
25
25
  before{ devise_user_login(user) }
26
26
 
27
27
  let(:project_assignment){ FactoryGirl.create(:project_assignment, project: project, user: user) }
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "issues/edit", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  @issue = assign(:issue, FactoryGirl.create(:issue, project: project, creator: user))
8
8
  end
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "issues/index", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  assign(:issues, [
8
8
  FactoryGirl.create(:issue, title: 'issue1', project: project, creator: user),
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "issues/new", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  assign(:issue, FactoryGirl.build(:issue, project: project, creator: user))
8
8
  end
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "issues/show", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  @issue = assign(:issue, FactoryGirl.create(:issue, project: project, creator: user))
8
8
  end
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "phases/edit", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  @phase = assign(:phase, FactoryGirl.create(:phase, project: project))
8
8
  end
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "phases/index", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  assign(:phases, [
8
8
  FactoryGirl.create(:phase, name: 'phase1', project: project),
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "phases/new", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  assign(:phase, FactoryGirl.build(:phase, project: project))
8
8
  end
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "phases/show", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  @phase = assign(:phase, FactoryGirl.create(:phase, project: project))
8
8
  end
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "project_assignments/edit", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  @project_assignment = assign(:project_assignment, FactoryGirl.create(:project_assignment, project: project, user: user))
8
8
  end
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "project_assignments/index", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  assign(:project_assignments, [
8
8
  FactoryGirl.create(:project_assignment, project: project, user: user),
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "project_assignments/new", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  assign(:project_assignment, FactoryGirl.build(:project_assignment, project: project, user: user))
8
8
  end
@@ -1,8 +1,8 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe "project_assignments/show", type: :view do
4
- let(:project){ FactoryGirl.create(:project, owner: user) }
5
4
  let(:user){ FactoryGirl.create(:user) }
5
+ let(:project){ FactoryGirl.create(:project, owner: user) }
6
6
  before(:each) do
7
7
  @project_assignment = assign(:project_assignment, FactoryGirl.create(:project_assignment, project: project, user: user))
8
8
  end
@@ -136,7 +136,7 @@ module ModelBase
136
136
 
137
137
  def factory_girl_let_definitions(spacer = " ")
138
138
  deps = all_dependencies
139
- r = deps.map(&:factory_girl_let_definition)
139
+ r = deps.reverse.map(&:factory_girl_let_definition)
140
140
  r << "let(:user){ FactoryGirl.create(:user) }" unless deps.any?{|m| m.full_resource_name == 'user' }
141
141
  r.join("\n" << spacer)
142
142
  end
@@ -1,3 +1,3 @@
1
1
  module ModelBase
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_base_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - akm