- イレギュラーな単数形に対応するための変更 activesupport/lib/active_support/inflector/inflections.rb
This file contains 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
git reset --hard 自分がコミットを追加する前のコミットのhash | |
git merge ORIG_HEAD --no-ff -m "Merge branch '適当なトピックブランチ名'" |
This file contains 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
describe "DELETE destroy" do | |
let!(:card) { Card.create! valid_attributes } | |
before do | |
expect { | |
delete :destroy, {:id => card.to_param} | |
}.should change(Card, :count).by(-1) |
This file contains 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
puts "In a non-matching group, help is #{help rescue 'not available'}" # not availableが表示される | |
puts "#{raise "hoge" rescue "aaa" }" # aaaが表示される |
This file contains 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
describe "hoge" do | |
bofore do | |
get "index" , value | |
end | |
context "範囲内に収まるパラメータがくる" do | |
let (:value) { 123 } | |
it { response.should eq true } | |
end | |
context "範囲内に収まっていないパラメータがくる" do | |
let (:value) { 123456 } |
This file contains 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
:focus_on_failed => false, :keep_failed => false |
gem "hoge", :git => "[email protected]"
インストールされているgemを物理的に削除
cd $GEM_HOME/bundler/gems
rm 指定のハッシュ値のgemフォルダを指定