This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original: https://gist.github.com/otaviomedeiros/1950961 | |
# Updated for new RSpec syntax | |
RSpec::Matchers.define :alias_from do |alias_method| | |
match do |subject| | |
begin | |
subject.send(alias_method) | |
rescue NoMethodError | |
raise "expected alias_method from #{alias_method} to #{@original_method} but #{alias_method} is not defined" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RSpec matcher to spec delegations. | |
# | |
# Usage: | |
# | |
# describe Post do | |
# it { expect(subject).to delegate(:title).to(:name) } # post.title => post.name | |
# it { expect(subject).to delegate(:month).to(:created_at) } # post.month => post.created_at | |
# it { expect(subject).to delegate(:author_name).to(:author, :name) } # post.author_name => post.author.name | |
# end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define name mecab | |
%define version 0.996 | |
%define release el6.4 | |
Summary: Yet Another Part-of-Speech and Morphological | |
Name: %{name} | |
Version: %{version} | |
Release: %{release} | |
Source0: https://mecab.googlecode.com/files/mecab-%{version}.tar.gz | |
License: GPL/LGPL/BSD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define name mecab-ipadic | |
%define ver 2.7.0 | |
%define date 20070801 | |
%define release el6.4_1 | |
Summary: IPA dictionary for MeCab | |
Summary(ja): MeCab用のIPA辞書 | |
Name: %{name} | |
Version: %{ver}.%{date} | |
Release: %{release} |