mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
16 lines
255 B
Ruby
16 lines
255 B
Ruby
|
|
||
|
module JSpec
|
||
|
class Browser
|
||
|
def open url
|
||
|
`open -g -a #{name} #{url}`
|
||
|
end
|
||
|
|
||
|
def name
|
||
|
self.class.to_s.split('::').last
|
||
|
end
|
||
|
|
||
|
class Firefox < self; end
|
||
|
class Safari < self; end
|
||
|
class Opera < self; end
|
||
|
end
|
||
|
end
|