Sha256: c067054c6f08f8516e4db2ff9fa779b669151ca523f9e5886126633e7b891bca

Contents?: true

Size: 656 Bytes

Versions: 1

Compression:

Stored size: 656 Bytes

Contents

#!/usr/bin/env ruby
#! -*- coding: utf-8 -*-

require "rubygems"
require "rspec"
require "yaml"

TWEETS_FILE = "tweets.yml"
REPLY_PATTERNS_FILE = "reply_patterns.yml"
LOCATIONS_FILE = "locations.yml"

describe "YAML Configurations" do
  before do
    @tweets = YAML.load_file TWEETS_FILE
    @replies = YAML.load_file REPLY_PATTERNS_FILE
    @locations = YAML.load_file LOCATIONS_FILE
  end
  
  it "TweetsはHash型であること" do
    @tweets.class.should == Hash
  end
  
  it "RepliesはHash型であること" do
    @replies.class.should == Hash
  end
  
  it "LocationsはArray型であること" do
    @locations.class.should == Array
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shiki-0.0.1 spec/valid_test_spec.rb