Sha256: c3e2ebf56c3165a13d95a1c72c6163e57f6c92c2e5c317bf4a84cf5d7e2794e0
Contents?: true
Size: 532 Bytes
Versions: 5
Compression:
Stored size: 532 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class Twurl::Options::Test < Minitest::Test attr_reader :options def setup @options = Twurl::Options.new end def test_base_url_is_built_from_protocol_and_host options.protocol = 'http' options.host = 'api.twitter.com' assert_equal 'http://api.twitter.com', options.base_url end def test_ssl_is_enabled_if_the_protocol_is_https options.protocol = 'http' assert !options.ssl? options.protocol = 'https' assert options.ssl? end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
twurl-0.9.2 | test/cli_options_test.rb |
twurl-0.9.1 | test/cli_options_test.rb |
twurl-0.9.0 | test/cli_options_test.rb |
twurl-0.8.3 | test/cli_options_test.rb |
twurl-0.8.2 | test/cli_options_test.rb |