git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug in links spec
[swftools.git]
/
spec
/
spec_helper.rb
diff --git
a/spec/spec_helper.rb
b/spec/spec_helper.rb
index
876f1d4
..
bb11257
100644
(file)
--- a/
spec/spec_helper.rb
+++ b/
spec/spec_helper.rb
@@
-58,7
+58,7
@@
class Area
end
def should_contain_link(url)
links = @file.get_links(@x1,@y1,@x2,@y2)
end
def should_contain_link(url)
links = @file.get_links(@x1,@y1,@x2,@y2)
- (links & [url]) or raise AreaError.new(self, "doesn't contain url \"#{url}\")
+ (links & [url]).empty? and raise AreaError.new(self, "doesn't contain url \"#{url}\"")
end
def to_s
"(#{@x1},#{@y1},#{@x2},#{@y2})"
end
def to_s
"(#{@x1},#{@y1},#{@x2},#{@y2})"