Sha256: c916d8accbc2e3028b820d5441d2cbb83101b91c2536d93851ba303f215d5606

Contents?: true

Size: 357 Bytes

Versions: 8

Compression:

Stored size: 357 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'

describe RandomText do
  it "should create RandomText objects for each text file" do
    Dir.glob(File.join(File.dirname(__FILE__), '..', 'resources', '*.txt')) do |path|
      RandomText.const_get(File.basename(path, File.extname(path)).classify).class.should == RandomText::RandomText
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
random_text-0.0.6.5 spec/random_text_spec.rb
random_text-0.0.5 spec/random_text_spec.rb
random_text-0.0.6 spec/random_text_spec.rb
random_text-0.0.6.1 spec/random_text_spec.rb
random_text-0.0.6.2 spec/random_text_spec.rb
random_text-0.0.6.3 spec/random_text_spec.rb
random_text-0.0.3 spec/random_text_spec.rb
random_text-0.0.6.4 spec/random_text_spec.rb