diff --git a/docsite/source/index.html.md b/docsite/source/index.html.md
index 267c39a..1c96085 100644
--- a/docsite/source/index.html.md
+++ b/docsite/source/index.html.md
@@ -44,7 +44,7 @@ end
#### Specify namespace for your structs
-Struct `User` will be find in MyApp::Entities namespace
+Struct `User` will be found in `MyApp::Entities` namespace
```ruby
Factory.define(:user, struct_namespace: MyApp::Entities) do |f|
@@ -86,7 +86,7 @@ end
Factory.define(:user) do |f|
f.name 'John'
- f.association(:user)
+ f.association(:group)
end
```
@@ -115,7 +115,7 @@ Factory.define(admin: :user) do |f|
f.admin true
end
-# Factory.structs(:admin)
+# Factory.structs[:admin]
```
#### Traits
@@ -130,7 +130,7 @@ Factory.define(:user) do |f|
end
end
-# Factory.structs(:user, :with_age)
+# Factory.structs[:user, :with_age]
```
#### Build-in [Faker](https://github.com/faker-ruby/faker) objects
diff --git a/spec/integration/rom/factory_spec.rb b/spec/integration/rom/factory_spec.rb
index 17ae6bd..0759068 100644
--- a/spec/integration/rom/factory_spec.rb
+++ b/spec/integration/rom/factory_spec.rb
@@ -983,7 +983,7 @@ class Admin < ROM::Struct
end
end
- context "facotry without custom struct namespace" do
+ context "factory without custom struct namespace" do
context "with builder without custom struct namespace" do
before do
factories.define(:user) do |f|
@@ -1074,7 +1074,7 @@ class User < ROM::Struct
end
end
- context "facotry with custom struct namespace" do
+ context "factory with custom struct namespace" do
context "with builder without custom struct namespace" do
let(:entities) { factories.struct_namespace(Test::Entities) }