19 lines
489 B
Ruby
19 lines
489 B
Ruby
require 'spec_helper'
|
|
|
|
describe Pod do
|
|
|
|
it 'has many pod_stats' do
|
|
Pod.new.pod_stats.should be_empty
|
|
end
|
|
describe '.find_or_create_by_url' do
|
|
it 'takes a url, and makes one by host' do
|
|
pod = Pod.find_or_create_by_url('https://joindiaspora.com/maxwell')
|
|
pod.host.should == 'joindiaspora.com'
|
|
end
|
|
|
|
it 'sets ssl boolean(side-effect)' do
|
|
pod = Pod.find_or_create_by_url('https://joindiaspora.com/maxwell')
|
|
pod.ssl.should be_true
|
|
end
|
|
end
|
|
end
|