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 +4 -4
- data/example/spec/controllers/issues_controller_spec.rb +1 -1
- data/example/spec/controllers/phases_controller_spec.rb +1 -1
- data/example/spec/controllers/project_assignments_controller_spec.rb +1 -1
- data/example/spec/views/issues/edit.html.erb_spec.rb +1 -1
- data/example/spec/views/issues/index.html.erb_spec.rb +1 -1
- data/example/spec/views/issues/new.html.erb_spec.rb +1 -1
- data/example/spec/views/issues/show.html.erb_spec.rb +1 -1
- data/example/spec/views/phases/edit.html.erb_spec.rb +1 -1
- data/example/spec/views/phases/index.html.erb_spec.rb +1 -1
- data/example/spec/views/phases/new.html.erb_spec.rb +1 -1
- data/example/spec/views/phases/show.html.erb_spec.rb +1 -1
- data/example/spec/views/project_assignments/edit.html.erb_spec.rb +1 -1
- data/example/spec/views/project_assignments/index.html.erb_spec.rb +1 -1
- data/example/spec/views/project_assignments/new.html.erb_spec.rb +1 -1
- data/example/spec/views/project_assignments/show.html.erb_spec.rb +1 -1
- data/lib/model_base/meta_model.rb +1 -1
- data/lib/model_base/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ef9b0bf63325b8a5d6411fd71f7447782b77af7
|
4
|
+
data.tar.gz: 2d56094f22d871373bd93150adb62d0a76e77e74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/model_base/version.rb
CHANGED