spec/models/popolo/other_name_spec.rb in popolo-0.0.3 vs spec/models/popolo/other_name_spec.rb in popolo-0.1.0
- old
+ new
@@ -1,9 +1,11 @@
-require 'spec_helper'
+require 'rails_helper'
-describe Popolo::OtherName do
- it {should validate_presence_of :name}
+module Popolo
+ RSpec.describe OtherName do
+ it {should validate_presence_of :name}
- [:start_date, :end_date].each do |attribute|
- it_should_behave_like 'a model with a date attribute', attribute
+ [:start_date, :end_date].each do |attribute|
+ it_behaves_like 'a model with a date attribute', attribute
+ end
end
end