Sha256: 336ee16b87b89ab1d65b5f2744c794e10cec1243e7de20e52a2983a7aae16314
Contents?: true
Size: 537 Bytes
Versions: 4
Compression:
Stored size: 537 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class Twurl::Options::Test < Test::Unit::TestCase 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
twurl-0.6.3 | test/cli_options_test.rb |
twurl-0.6.2 | test/cli_options_test.rb |
twurl-0.6.1 | test/cli_options_test.rb |
twurl-0.6.0 | test/cli_options_test.rb |