sugarcube 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/sugarcube/version.rb +1 -1
- data/lib/sugarcube-foundation/nsurl.rb +4 -0
- data/spec/nsurl_spec.rb +4 -0
- data/spec/uiactionsheet_spec.rb +16 -0
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/sugarcube/version.rb
CHANGED
data/spec/nsurl_spec.rb
CHANGED
data/spec/uiactionsheet_spec.rb
CHANGED
@@ -113,6 +113,10 @@ describe 'UIActionSheet' do
|
|
113
113
|
proper_wait 0.6
|
114
114
|
end
|
115
115
|
|
116
|
+
after do
|
117
|
+
@alert.dismissWithClickedButtonIndex(-1, animated: false) if @alert.visible?
|
118
|
+
end
|
119
|
+
|
116
120
|
it 'should call block with "cancel" when cancel button is pressed' do
|
117
121
|
@alert.cancelButtonIndex.should == 1
|
118
122
|
@alert.dismissWithClickedButtonIndex(@alert.cancelButtonIndex, animated: false)
|
@@ -139,6 +143,10 @@ describe 'UIActionSheet' do
|
|
139
143
|
proper_wait 0.6
|
140
144
|
end
|
141
145
|
|
146
|
+
after do
|
147
|
+
@alert.dismissWithClickedButtonIndex(-1, animated: false) if @alert.visible?
|
148
|
+
end
|
149
|
+
|
142
150
|
it 'should call block with "cancel" when cancel button is pressed' do
|
143
151
|
@alert.cancelButtonIndex.should == 1
|
144
152
|
@alert.dismissWithClickedButtonIndex(@alert.cancelButtonIndex, animated: false)
|
@@ -165,6 +173,10 @@ describe 'UIActionSheet' do
|
|
165
173
|
proper_wait 0.6
|
166
174
|
end
|
167
175
|
|
176
|
+
after do
|
177
|
+
@alert.dismissWithClickedButtonIndex(-1, animated: false) if @alert.visible?
|
178
|
+
end
|
179
|
+
|
168
180
|
it 'should call block with "cancel" when cancel button is pressed' do
|
169
181
|
@alert.cancelButtonIndex.should == -1
|
170
182
|
end
|
@@ -191,6 +203,10 @@ describe 'UIActionSheet' do
|
|
191
203
|
proper_wait 0.6
|
192
204
|
end
|
193
205
|
|
206
|
+
after do
|
207
|
+
@alert.dismissWithClickedButtonIndex(-1, animated: false) if @alert.visible?
|
208
|
+
end
|
209
|
+
|
194
210
|
it 'should call block with "cancel" when cancel button is pressed' do
|
195
211
|
@alert.cancelButtonIndex.should == -1
|
196
212
|
end
|