|
6 | 6 | it "cannot be used with both only and except options" do |
7 | 7 | Dir.chdir("#{File.dirname(__FILE__)}/../dummy") do |
8 | 8 | unsuccessfully "rails generate logidze:model post " \ |
9 | | - "--only=title --except=created_at #{LOGIDZE_DETACHED ? " --detached" : ""}" |
| 9 | + "--only=title --except=created_at" |
10 | 10 | end |
11 | 11 | end |
12 | 12 |
|
|
18 | 18 |
|
19 | 19 | Dir.chdir("#{File.dirname(__FILE__)}/../dummy") do |
20 | 20 | successfully "rails generate logidze:model post " \ |
21 | | - "--except=#{@except.join(" ")} #{LOGIDZE_DETACHED ? " --detached" : ""}" |
| 21 | + "--except=#{@except.join(" ")}" |
22 | 22 | successfully "rake db:migrate" |
23 | 23 |
|
24 | 24 | # Close active connections to handle db variables |
|
73 | 73 | @only = %w[title meta] |
74 | 74 |
|
75 | 75 | Dir.chdir("#{File.dirname(__FILE__)}/../dummy") do |
76 | | - successfully "rails generate logidze:model post " \ |
77 | | - "--only=#{@only.join(" ")} #{LOGIDZE_DETACHED ? " --detached" : ""}" |
| 76 | + successfully "rails generate logidze:model post --only=#{@only.join(" ")}" |
78 | 77 | successfully "rake db:migrate" |
79 | 78 |
|
80 | 79 | # Close active connections to handle db variables |
|
128 | 127 | @only = %w[title rating] |
129 | 128 |
|
130 | 129 | Dir.chdir("#{File.dirname(__FILE__)}/../dummy") do |
131 | | - successfully "rails generate logidze:model post " \ |
132 | | - "--only=#{@only.join(" ")} #{LOGIDZE_DETACHED ? " --detached" : ""}" |
| 130 | + successfully "rails generate logidze:model post --only=#{@only.join(" ")}" |
133 | 131 | successfully "rake db:migrate" |
134 | 132 |
|
135 | 133 | # Close active connections to handle db variables |
|
150 | 148 | ActiveRecord::Base.connection_pool.disconnect! |
151 | 149 |
|
152 | 150 | Dir.chdir("#{File.dirname(__FILE__)}/../dummy") do |
153 | | - successfully "rails generate logidze:model post --except=updated_at #{LOGIDZE_DETACHED ? " --detached" : ""} " \ |
154 | | - "--update" |
| 151 | + successfully "rails generate logidze:model post --except=updated_at --update" |
155 | 152 | successfully "rake db:migrate" |
156 | 153 |
|
157 | 154 | ActiveRecord::Base.connection_pool.disconnect! |
|
0 commit comments