Yeah, unfortunately we don't have a a good way of overriding tests (Desert
doesn't provide this functionality, the way it does for models and
controllers).

Let me know if you figure out a DRY way of handling this.

Thanks,
Bruno

On Tue, Aug 31, 2010 at 9:59 AM, Alex <[email protected]> wrote:

> One more thing about customization... What about the tests? I tried
> overiding a functional test ( in the events controller ) Doing so, I
> have to copy the events_controller_test.rb file, all the fixtures it
> depends on as well as the helper files and the helpers that are
> located in the lib directory of the community engine
> ( authenticated_test_helper.rb ). So is this normal procedure?
>
> Also, what if I want to use rSpec for testing my own customization, I
> cant override?
>
> Basically I'm looking for the best orientation to keep the testing
> clean and simple. But I want to continue to run the tests from
> community_engine, as well as my own tests ( also I would prefer to use
> rSpec for all new tests ). Is that all possible?
>
> Thanks!
>
> On 27 août, 14:48, Alex <[email protected]> wrote:
> > Thank you very much for your response
> >
> > On 26 août, 16:50, Bruno Bornsztein <[email protected]>
> > wrote:
> >
> >
> >
> > > Hi Alex,
> > > All of the CE views already have their texts localized, meaning instead
> of
> > > writing something like:
> >
> > > "Bruno's Posts"
> >
> > > The templates use symbols, like:
> >
> > > :users_posts_header.l (where .l is a method on Symbol that does the
> i18n
> > > lookup).
> >
> > > So, if all you're doing is i18n, you should just be able to make edits
> to
> > > the appropriate .yml file (see README section on localization for more
> on
> > > this:
> http://github.com/bborn/communityengine/blob/master/README.markdown).
> >
> > > If you're changing the structure of the markup, then you'll have to
> override
> > > the views. I've found that you can do a lot of customization by just
> > > creating a custom locale file and overriding CSS. You can take that
> pretty
> > > far before you need to start overriding tons of views.
> >
> > > Thanks,
> > > Bruno
> >
> > > On Wed, Aug 25, 2010 at 8:32 AM, Alex <[email protected]> wrote:
> > > > Hi there, let me ask you guys a general question about customizing a
> > > > CE site... I know with the desert gem, you can override everything,
> > > > including views... So, say I want my site to support both french and
> > > > english. I have to go through each view and replace the hardcoded
> > > > texts with a function that will get the text to render in the correct
> > > > language... So, I have to override almost each and every single view
> > > > in the project? I know that for a model or a controller, I can
> > > > override only the method I'm interested in, but for the view, correct
> > > > me if I'm wrong but I have to override everything in the view? Doing
> > > > so, I'm afraid that I will not be able to upgrade my site when new
> > > > releases of CE come out.
> >
> > > > If you could point out the best strategies to customize a CE site ans
> > > > especially the views, it would be greatly appreciated.
> >
> > > > Thanks
> >
> > > > --
> > > > You received this message because you are subscribed to the Google
> Groups
> > > > "CommunityEngine" group.
> > > > To post to this group, send email to
> [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<communityengine%[email protected]>
> <communityengine%2Bunsubscribe@ googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/communityengine?hl=en.- Masquer le
> texte des messages précédents -
> >
> > - Afficher le texte des messages précédents -
>
> --
> You received this message because you are subscribed to the Google Groups
> "CommunityEngine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<communityengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/communityengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.

Reply via email to