Sha256: de19246c79d5fc4067b547cdcba03d0c59a72e9126343abefcde27ff140285ce
Contents?: true
Size: 969 Bytes
Versions: 1
Compression:
Stored size: 969 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "NSIVideoConvert::Client::Configuration" do Configuration = NSIVideoConvert::Client::Configuration it "set and return user" do Configuration.user 'why' Configuration.user.should == 'why' end it "set and return password" do Configuration.password 'admin123' Configuration.password.should == 'admin123' end it "set and return host" do Configuration.host '192.168.0.100' Configuration.host.should == '192.168.0.100' end it "set and return port" do Configuration.port '8888' Configuration.port.should == '8888' end it "return a hash of attributes" do Configuration.instance_eval do user "why" password "chunky" host "localhost" port "8888" end Configuration.settings.should == {user: "why", password: "chunky", host: "localhost", port: "8888"} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nsivideoconvert-0.0.1 | spec/configuration_spec.rb |