Sha256: 489b37e2197d8ead1683cf3d6564a716b7df6e0b8e77b3806e3247e174cbe17a
Contents?: true
Size: 412 Bytes
Versions: 3
Compression:
Stored size: 412 Bytes
Contents
# coding: utf-8 require 'spec_helper' describe HttpMachinegun::Data do context "when argument is string" do it{ HttpMachinegun::Data.new("abcdef").to_s.should eql "abcdef" } end context "when argument is file path" do it do file_path = "#{File.dirname(__FILE__)}/resources/data_fixture.txt" HttpMachinegun::Data.new(file_path).to_s.should eql File.read(file_path) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
http_machinegun-0.0.3 | spec/data_spec.rb |
http_machinegun-0.0.2 | spec/data_spec.rb |
http_machinegun-0.0.1 | spec/data_spec.rb |