<commit_before># -*- coding: utf-8 -*-
require 'hiroshimarb/cli'

describe Hiroshimarb::CLI do
  let(:cli) do
    Object.new.extend Hiroshimarb::CLI
  end

  describe '#open' do
    subject { cli.open }
    it "Hiroshima.rbのウェブサイトを表示" do
      Launchy.should_receive(:open).with('http://hiroshimarb.github.com')
      subject
    end
  end

  describe '#info' do
    it 'Hiroshim.rbの情報を出力'
  end

  describe '#member' do<commit_msg>仕様変更 open コマンドに引数を渡せるように<commit_after># -*- coding: utf-8 -*-
require 'hiroshimarb/cli'

describe Hiroshimarb::CLI do
  let(:cli) do
    Object.new.extend Hiroshimarb::CLI
  end

  describe '#open' do
    subject { cli.open(arg) }

    context '引数なし' do
      let(:arg) { nil }
      it "Hiroshima.rbのウェブサイトを表示" do
        Launchy.should_receive(:open).with('http://hiroshimarb.github.com')
        subject
      end
    end

    context '引数 "oc-h"' do
      let(:arg) { "oc-h" }
      it "おしい広島県のウェブサイトを表示" do
        Launchy.should_receive(:open).with('http://oc-h.jp/')
        subject
      end
    end
  end

  describe '#info' do
    it 'Hiroshim.rbの情報を出力'
  end

  describe '#member' do
{'fraction_non_alphanumeric': 0.13422222222222221, 'fraction_numerical': 0.0017777777777777779, 'mean_word_length': 2.644012944983819, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3282037', 'n_tokens_mistral': 485, 'n_tokens_neox': 463, 'n_words': 88}