spec/integration_spec.rb in freebase-importers-0.0.3 vs spec/integration_spec.rb in freebase-importers-0.0.4
- old
+ new
@@ -5,9 +5,16 @@
describe FreebaseImporters do
it "should be a module" do
expect(FreebaseImporters).to be_a_kind_of Module
end
+ describe FreebaseImporters::Animal do
+ let(:animal) { FreebaseImporters::Animal.first }
+ it "should have a name" do
+ expect(animal.name).to match /\w+/
+ end
+ end
+
describe FreebaseImporters::Book do
let(:book) { FreebaseImporters::Book.first }
it "should have a name" do
expect(book.name).to match /\w+/
end
\ No newline at end of file