|
54 | 54 |
|
55 | 55 | it { is_expected.to eq('psql') } |
56 | 56 | end |
| 57 | + |
57 | 58 | context 'default value: [:psql_user]' do |
58 | 59 | subject { super()[:psql_user] } |
59 | 60 |
|
60 | 61 | it { is_expected.to eq('postgres') } |
61 | 62 | end |
| 63 | + |
62 | 64 | context 'default value: [:psql_group]' do |
63 | 65 | subject { super()[:psql_group] } |
64 | 66 |
|
65 | 67 | it { is_expected.to eq('postgres') } |
66 | 68 | end |
| 69 | + |
67 | 70 | context 'default value: [:cwd]' do |
68 | 71 | subject { super()[:cwd] } |
69 | 72 |
|
70 | 73 | it { is_expected.to eq('/tmp') } |
71 | 74 | end |
| 75 | + |
72 | 76 | context 'default value: #refreshonly?' do |
73 | 77 | subject { super().refreshonly? } |
74 | 78 |
|
|
135 | 139 | context 'not refreshing' |
136 | 140 | it { expect(subject.should_run_sql).to be_falsey } |
137 | 141 | end |
| 142 | + |
138 | 143 | context "refreshonly => #{refreshonly.inspect}" do |
139 | 144 | let(:attributes) do |
140 | 145 | { refreshonly: refreshonly } |
|
154 | 159 | context 'not refreshing' |
155 | 160 | it { expect(subject.should_run_sql).to be_truthy } |
156 | 161 | end |
| 162 | + |
157 | 163 | context "refreshonly => #{refreshonly.inspect}" do |
158 | 164 | let(:attributes) do |
159 | 165 | { refreshonly: refreshonly } |
|
177 | 183 | context 'not refreshing' |
178 | 184 | it { expect(subject.should_run_sql).to be_falsey } |
179 | 185 | end |
| 186 | + |
180 | 187 | context "refreshonly => #{refreshonly.inspect}" do |
181 | 188 | let(:attributes) do |
182 | 189 | { refreshonly: refreshonly, unless: 'SELECT something' } |
|
196 | 203 | context 'not refreshing' |
197 | 204 | it { expect(subject.should_run_sql).to be_falsey } |
198 | 205 | end |
| 206 | + |
199 | 207 | context "refreshonly => #{refreshonly.inspect}" do |
200 | 208 | let(:attributes) do |
201 | 209 | { refreshonly: refreshonly, unless: 'SELECT something' } |
|
219 | 227 | context 'not refreshing' |
220 | 228 | it { expect(subject.should_run_sql).to be_falsey } |
221 | 229 | end |
| 230 | + |
222 | 231 | context "refreshonly => #{refreshonly.inspect}" do |
223 | 232 | let(:attributes) do |
224 | 233 | { refreshonly: refreshonly, unless: 'SELECT something' } |
|
238 | 247 | context 'not refreshing' |
239 | 248 | it { expect(subject.should_run_sql).to be_truthy } |
240 | 249 | end |
| 250 | + |
241 | 251 | context "refreshonly => #{refreshonly.inspect}" do |
242 | 252 | let(:attributes) do |
243 | 253 | { refreshonly: refreshonly, unless: 'SELECT something' } |
|
0 commit comments