15 lines
413 B
Ruby
15 lines
413 B
Ruby
require 'spec_helper'
|
|
|
|
describe Pod do
|
|
describe '.find_or_create_by' 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
|