File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 55 let ( :configurable_obj ) { Class . new . send :include , ImageKitIo ::Configurable }
66
77 describe 'Configuration' do
8- after do
9- configurable_obj . config . constants . BASE_URL = "https://api.imagekit.io/v1/files"
10- end
118 it 'configure with the keys' do
129 configurable_obj . configure do |config |
1310 config . public_key = 'public_key_123'
3431 end
3532
3633 it "supports customization" do
37- constants . BASE_URL = 'imagekit.io '
38- expect ( constants . BASE_URL ) . to eq ( 'imagekit.io ' )
34+ constants . TIMESTAMP = '88888 '
35+ expect ( constants . TIMESTAMP ) . to eq ( '88888 ' )
3936 configurable_obj . configure do |config |
40- config . constants . BASE_URL = 'api.imagekit.io '
37+ config . constants . TIMESTAMP = '5555 '
4138 end
42- expect ( configurable_obj . constants . BASE_URL ) . to eq ( 'api.imagekit.io ' )
39+ expect ( configurable_obj . constants . TIMESTAMP ) . to eq ( '5555 ' )
4340 end
4441 end
4542
You can’t perform that action at this time.
0 commit comments