में * _spec.rb फ़ाइल उत्पन्न नहीं कर रहा है। मैं पहले से ही आरएसपीसी-रेल मणि स्थापित कर चुका हूं। जब मैं rails g model movie showtime_date:date showtime_time:time
मुझे लगता है कि चलाने के लिए, मैंरेलवे 4 * बीएस
invoke active_record
create db/migrate/20130604010556_create_movies.rb
create app/models/movie.rb
invoke rspec
create spec/models/movie_spec.rb
मिलना चाहिए लेकिन जब मैं rails g model movie showtime_date:date showtime_time:time
चलाने मैं
invoke active_record
create db/migrate/xxxxxxxxxxx_create_movies.rb
create app/models/movie.rb
invoke test_unit
create test/models/movie_test.rb
create test/fixtures/movies.yml
मिल मेरे मणि पैकेज के साथ एक समस्या है? मैं Rails4 बीटा का उपयोग कर रहा हूँ। क्या इस संस्करण में त्रुटि है या कुछ और है?
मेरे ऐप के लिए BDD इस app/features/show_descripitons.feature
Feature: Showtime Descriptions
As a movie goer
I want to see accurate and concise showtimes
So that I can find movies that fit my schedule
@wip
Scenario: Show minutes for times ending with 00
Given a movie
When I set the showtime to "2013-05-04" at "2:15pm"
Then the showtime description should be "June 04, 2013(2pm)"
Scenario: Hide minutes for times ending with 00
Given a movie
When I set the showtime to "2013-05-04" at "2:00pm"
Then the showtime description should be "June 04, 2013(2pm)"
की तरह है और मेरे app/features/step_definition/showtime_descriptions.rb
इस
Given(/^a movie$/) do
@movie = Movie.create!
end
When(/^I set the showtime to "(.*?)" at "(.*?)"$/) do |date, time|
@movie.update_attribute(:showtime_date, Date.parse(date))
@movie.update_attribute(:showtime_time, time)
end
Then(/^the showtime description should be "(.*?)"$/) do |showtime|
@movie.showtime.showtime eq(showtime)
end
क्या आपने शुरुआत में आरएसपीईसी: इंस्टॉल 'उत्पन्न किया था? –