Skip to content

Commit

Permalink
Fix some documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
katafrakt committed Nov 12, 2022
1 parent da217e8 commit fab9dd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docsite/source/index.html.md
Expand Up @@ -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|
Expand Down Expand Up @@ -86,7 +86,7 @@ end

Factory.define(:user) do |f|
f.name 'John'
f.association(:user)
f.association(:group)
end
```

Expand Down Expand Up @@ -115,7 +115,7 @@ Factory.define(admin: :user) do |f|
f.admin true
end

# Factory.structs(:admin)
# Factory.structs[:admin]
```

#### Traits
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/integration/rom/factory_spec.rb
Expand Up @@ -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|
Expand Down Expand Up @@ -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) }

Expand Down

0 comments on commit fab9dd5

Please sign in to comment.