I have the following file: /spec/controllers/groups_controller_spec.rb What command in terminal do I use to run just that spec and in what directory do I run the command? My gem file: # Test ENVIRONMENT GEMS group :development, :test do gem "autotest" gem "rspec-rails", "~> 2.4" gem "cucumber-rails", ">=0.3.2" gem "webrat", ">=0.7.2" gem 'factory_girl_rails' gem 'email_spec' end Spec file: require
I am new to RSPEC. I have wrote a RSPEC code named result_spec.rb as below: describe '#grouped_scores' do subject { result.grouped_scores } let(:result) { create(:result, user: user) } its(:keys) { is_expected.to eq [1] } its([1]) { is_expected.to be_within(0.001).of(6) } end Then when I wrote the method in the model named result.rb, the sample code is as below: def grouped_scores s = 0 if score >
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く